Faster s3 bucket duplication

前端 未结 7 947
傲寒
傲寒 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 18:52

    For adhoc solution use aws cli to sync between buckets:

    aws s3 sync speed depends on:
    - latency for an API call to S3 endpoint
    - amount of API calls made in concurrent

    To increase sync speed:
    - run aws s3 sync from an AWS instance (c3.large on FreeBSD is OK ;-) )
    - update ~/.aws/config with:
    -- max_concurrent_requests = 128
    -- max_queue_size = 8096

    with following config and instance type I was able to sync bucket (309GB, 72K files, us-east-1) within 474 seconds.

    For more generic solution consider - AWS DataPipeLine or S3 cross-region replication.

提交回复
热议问题