Is it possible to copy all files from one S3 bucket to another with s3cmd?

前端 未结 11 1756
陌清茗
陌清茗 2020-12-12 12:30

I\'m pretty happy with s3cmd, but there is one issue: How to copy all files from one S3 bucket to another? Is it even possible?

EDIT: I\'ve found a way to copy files

11条回答
  •  醉话见心
    2020-12-12 13:02

    AWS CLI seems to do the job perfectly, and has the bonus of being an officially supported tool.

    aws s3 sync s3://mybucket s3://backup-mybucket
    

    http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html

提交回复
热议问题