- Local dir to remote bucket sync
- Local dir to remote bucket copy with gzip content encoding header
- Remote to remote bucket copy
$ aws s3 sync \
--dryrun \
--region ap-southeast-1 \
--delete \
/path/to/files/ \
s3://BUCKET.NAME/path/to/dest
$ aws s3 cp \
--dryrun \
--region ap-southeast-1 \
--recursive \
--content-encoding 'gzip' \
/path/to/files/ \
s3://BUCKET.NAME/path/to/dest
$ aws s3 cp \
--dryrun \
--region ap-southeast-1 \
--recursive \
s3://BUCKET.NAME/path/to/source \
s3://BUCKET.NAME/path/to/dest