Skip to content

Conversation

@adamzimmermann
Copy link

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
Copy link
Contributor

@apotek apotek left a comment

Choose a reason for hiding this comment

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

LGTM

fi

aws s3 cp "$FILENAME".sql.gz s3://"$INPUT_AWS_S3_BUCKET"
if [ -z "${INPUT_AWS_S3_DIRECTORY}" ] ]
Copy link
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
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. 🦅

Copy link
Author

@adamzimmermann adamzimmermann May 25, 2022

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.

3 participants