Skip to content

Allow copying to a S3 bucket directory.#12

Draft
adamzimmermann wants to merge 1 commit into
mainfrom
sync-to-subfolder
Draft

Allow copying to a S3 bucket directory.#12
adamzimmermann wants to merge 1 commit into
mainfrom
sync-to-subfolder

Conversation

@adamzimmermann

Copy link
Copy Markdown

Description

Allow copying to a S3 bucket directory.

Motivation / Context

Sometimes you want to use a single bucket and use folders within it.

Testing Instructions / How This Has Been Tested

TK.

Screenshots

TK

Documentation

Included. ✅

@adamzimmermann adamzimmermann self-assigned this May 25, 2022
@adamzimmermann adamzimmermann requested a review from apotek May 25, 2022 21:02

@apotek apotek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread entrypoint.sh
fi

aws s3 cp "$FILENAME".sql.gz s3://"$INPUT_AWS_S3_BUCKET"
if [ -z "${INPUT_AWS_S3_DIRECTORY}" ] ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not familiar enough with how aws_s3_directory in config is translated into environment var INPUT_AWS_S3_DIRECTORY, but if that is how it works, then the code looks sane and clean.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forget where I've found it before and a quick search didn't turn much up, but I'm following the pattern used elsewhere in this repo.

Good eye on the naming difference though. 🦅

@adamzimmermann adamzimmermann May 25, 2022

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to use this, can you point the GH Action to this branch to give this a spin, then once we confirm it works for you, we can merge it?

- uses: chromatichq/db-backup-sync-action@sync-to-subfolder

I think this will do the trick. 🤞🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants