Faster s3 bucket duplication

前端 未结 7 889
傲寒
傲寒 2020-12-22 18:14

I have been trying to find a better command line tool for duplicating buckets than s3cmd. s3cmd can duplicate buckets without having to download and upload eac

相关标签:
7条回答
  • 2020-12-22 19:18

    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

    Supports concurrent transfers by default. See http://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-concurrent-requests

    To quickly transfer a huge number of small files, run the script from an EC2 instance to decrease latency, and increase max_concurrent_requests to reduce the impact of latency. Eg:

    aws configure set default.s3.max_concurrent_requests 200
    
    0 讨论(0)
提交回复
热议问题