Very simple :) Below the commands:
1. Empty destination bucket:
aws s3 rm s3://destinationbucket --recursive
2. Copy from source to destination bucket
aws s3 sync s3://sourcebucket s3://destinationbucket--region eu-central-1
3. Best part of all, watch live progress:
while sleep 10; do aws s3 ls s3://destinationbucket --recursive --human-readable --summarize | tail -n 3; done
Total Objects: 1382938
Total Size: 1.8 TiB
Total Objects: 1217651
Total Size: 1.6 TiB
No comments:
Post a Comment