How to synchronize files between AWS S3 buckets using AWS CLI
# Synchronize files between two buckets
aws s3 sync s3://source-bucket s3://target-bucket
# Make synchronized files publicly available
aws s3 sync s3://source-bucket s3://target-bucket --acl public-read
# Or private
aws s3 sync s3://source-bucket s3://target-bucket --acl private
8 lines of code, 281 characters
Similar AWS code snippets using bash