Downloading an entire S3 bucket?

前端 未结 30 1459
天命终不由人
天命终不由人 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 15:00

    You've many options to do that, but the best one is using the AWS CLI.

    Here's a walk-through:

    1. Download and install AWS CLI in your machine:

      • Install the AWS CLI using the MSI Installer (Windows).
      • Install the AWS CLI using the Bundled Installer for Linux, OS X, or Unix.
    2. Configure AWS CLI:

      Make sure you input valid access and secret keys, which you received when you created the account.

    3. Sync the S3 bucket using:

      aws s3 sync s3://yourbucket /local/path
      

      In the above command, replace the following fields:

      • yourbucket >> your S3 bucket that you want to download.
      • /local/path >> path in your local system where you want to download all the files.

提交回复
热议问题