Move files directly from one S3 account to another?

后端 未结 10 1572
攒了一身酷
攒了一身酷 2020-12-07 07:42

Pretty basic question but I haven\'t been able to find an answer. Using Transit I can \"move\" files from one S3 bucket on one AWS account to another S3 bucket on another AW

10条回答
  •  無奈伤痛
    2020-12-07 08:01

    Use the aws cli (I used ubuntu 14 ec2 instance) and just run the following command:

    aws s3 sync s3://bucket1 s3://bucket2
    

    You will need to specify the account details for one, and have public write access or public read access to the other.

    This will sync the two buckets. You can use the same command again later to sync quickly. Best part is that it doesn't seem t require any bandwidth (e.g. files are not passing through local computer).

提交回复
热议问题