Download AWS S3 Bucket

readymadecode

Chetan Rohilla

Posted on March 3, 2022

Download AWS S3 Bucket

An Amazon S3 bucket is a public cloud storage resource available in Amazon Web Services’ (AWS) Simple Storage Service (S3), an object storage offering. Amazon S3 buckets, which are similar to file folders, store objects, which consist of data and its descriptive metadata. AWS recently released their Command Line Tools, which work much like boto and can be installed using. Now, you can download AWS s3 bucket folder or files.

Install AWS Cli

sudo easy_install awscli

or

sudo pip install awscli
Enter fullscreen mode Exit fullscreen mode

Download and install AWS CLI in your machine

Once installed the AWS CLI, you can then simply run the following commands to download AWS S3 bucket folders and files.

aws s3 sync s3://<source_bucket> <local_destination>
Enter fullscreen mode Exit fullscreen mode

For example: aws s3 sync s3://mybucket will download all the objects in mybucket to the current directory.

You can also download a folder recursively in AWS S3 Bucket

aws s3 cp s3://BUCKETNAME/PATH/TO/FOLDER LocalFolderName --recursive
Enter fullscreen mode Exit fullscreen mode

This will instruct the CLI to download all files and folder keys recursively within the PATH/TO/FOLDER directory within the BUCKETNAME bucket.

You can also read more about Downloading an Object AWS S3(Simple Storage Service).

Please like share and give positive feedback to motivate me to write more.

For more tutorials please visit my website.

Thanks:)
Happy Coding:)

💖 💪 🙅 🚩
readymadecode
Chetan Rohilla

Posted on March 3, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Download AWS S3 Bucket
aws Download AWS S3 Bucket

March 3, 2022