Best way to move files between S3 buckets?

前端 未结 12 2125
暗喜
暗喜 2020-12-07 11:09

I\'d like to copy some files from a production bucket to a development bucket daily.

For example: Copy productionbucket/feed/feedname/date to developmentbucket/feed/

12条回答
  •  悲&欢浪女
    2020-12-07 11:18

    The new official AWS CLI natively supports most of the functionality of s3cmd. I'd previously been using s3cmd or the ruby AWS SDK to do things like this, but the official CLI works great for this.

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

    aws s3 sync s3://oldbucket s3://newbucket
    

提交回复
热议问题