File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ case "${PG_BACKUP_ACTION:-dump}" in
6666 cat dump.backup | aws $AWS_ARGS s3 cp - s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .backup --acl private || exit 2
6767 else
6868 echo " Rotating old snapshot"
69- aws $AWS_ARGS s3 cp s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .backup s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .old.backup --acl public-read || true
69+ aws $AWS_ARGS s3 cp s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .backup s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .old.backup --metadata-directive REPLACE -- acl public-read || true
7070
7171 echo " Uploading fresh public snapshot to $S3_BUCKET /$S3_PATH /$S3_FILENAME "
7272 cat dump.backup | aws $AWS_ARGS s3 cp - s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .backup --acl public-read || exit 2
You can’t perform that action at this time.
0 commit comments