Make a local copy of an S3 bucket

Posted Almost 6 years ago. Visible to the public.

To make a local copy of an S3 bucket, I use the s3cmd command line tool.

Configure access keys:

s3cmd --configure

Make a local directory for the backup:

mkdir s3backup
cd s3backup

Get a preview of what we're going to copy:

s3cmd sync --dry-run s3://your-bucket-name-here .

Start copying files:

s3cmd sync s3://your-bucket-name-here .
Henning Koch
Last edit
Almost 6 years ago
Henning Koch
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2018-06-25 08:13)