Downloading an entire S3 bucket?

前端 未结 30 1403
天命终不由人
天命终不由人 2020-11-29 14:10

I noticed that there doesn\'t seem to be an option to download an entire S3 bucket from the AWS Management Console.

Is there an easy way to grab everything in one of

30条回答
  •  一向
    一向 (楼主)
    2020-11-29 14:59

    As Neel Bhaat has explained in this blog, there are many different tools that can be used for this purpose. Some are AWS provided, where most are third party tools. All these tools require you to save your AWS account key and secret in the tool itself. Be very cautious when using third party tools, as the credentials you save in might cost you, your entire worth and drop you dead.

    Therefore, I always recommend using the AWS CLI for this purpose. You can simply install this from this link. Next, run the following command and save your key, secret values in AWS CLI.

    aws configure
    

    And use the following command to sync your AWS S3 Bucket to your local machine. (The local machine should have AWS CLI installed)

    aws s3 sync  
    

    Examples:

    1) For AWS S3 to Local Storage

    aws s3 sync  
    

    2) From Local Storage to AWS S3

    aws s3 sync  
    

    3) From AWS s3 bucket to another bucket

    aws s3 sync   
    

提交回复
热议问题