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
66
66
cat dump.backup | aws $AWS_ARGS s3 cp - s3://$S3_BUCKET /$S3_PATH /$S3_FILENAME .backup --acl private || exit 2
67
67
else
68
68
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
70
70
71
71
echo " Uploading fresh public snapshot to $S3_BUCKET /$S3_PATH /$S3_FILENAME "
72
72
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