Parameterizing more values so it's more versatile #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contains breaking changes.
Parameterizing more of the S3 bucket path so users can be more granular when automating with this container.
Added S3_BUCKET, SRC_S3, S3_FILE.
-- S3_BUCKET = Bucket name without slash
-- SRC_S3 = Folder path in bucket
-- S3_FILE = (Only used with sync-s3-to-local) A mash of both S3_BUCKET and SRC_S3 to find the latest S3 file in the bucket.
Changed env vars to be in caps for best practice so this is a breaking change.
-- aws_key => AWS_ACCESS_KEY
-- aws_secret => AWS_SECRET_KEY
-- cmd => S3_CMD
Added
if
logic in sync-s3-to-local command so that it'll check for whether or not the backup exists before attempting to download again. If it does exist, echo that and exit 0.