Skip to content

Commit

Permalink
Merge pull request #87 from sven-codeculture/patch-1
Browse files Browse the repository at this point in the history
Add SYNCEXTRA environment variable
  • Loading branch information
vladgh authored Aug 16, 2019
2 parents 7e16bbf + 95fe7f3 commit e0d3323
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s3sync/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ AWS_S3_SSE="${AWS_S3_SSE:-false}"
AWS_S3_SSE_KMS_KEY_ID="${AWS_S3_SSE_KMS_KEY_ID:-}"
CRON_TIME="${CRON_TIME:-10 * * * *}"
INITIAL_DOWNLOAD="${INITIAL_DOWNLOAD:-true}"
SYNCEXTRA="${SYNCEXTRA:-}"

# Log message
log(){
Expand All @@ -24,7 +25,7 @@ sync_files(){
src="${1:-}"
dst="${2:-}"

sync_cmd='--no-progress --delete --exact-timestamps'
sync_cmd="--no-progress --delete --exact-timestamps $SYNCEXTRA"

if [[ "$AWS_S3_SSE" == 'true' ]] || [[ "$AWS_S3_SSE" == 'aes256' ]]; then
s3_upload_cmd+=' --sse AES256'
Expand Down

0 comments on commit e0d3323

Please sign in to comment.