Best way to move files between S3 buckets?

前端 未结 12 2132
暗喜
暗喜 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:12

    If you have a unix host within AWS, then use s3cmd from s3tools.org. Set up permissions so that your key as read access to your development bucket. Then run:

    s3cmd cp -r s3://productionbucket/feed/feedname/date s3://developmentbucket/feed/feedname
    

提交回复
热议问题