How can I download complete AWS S3 Bucket Locally?


Hello, I have some files and folders saved on Amazon web services S3 Bucket, now I would like to download entire bucket files and folders locally, how can I do it using CLI? Which is an easy way to get all contents of the Amazon S3 bucket? Thanks.


Asked by:- bhanu
0
: 111 At:- 11/29/2021 12:18:14 PM
AWS Amazon S3 bucket AWS CLI






1 Answers
profileImage Answered by:- vikas_jk

You can use aws s3 sync command using CLI to download all files of bucket, here is the sample code

aws s3 sync s3://<source_bucket> <local_destination>

In the above command, replace the following fields:

  • <source_bucket> -> your S3 bucket that you want to download.
  • <local_destination> -> path in your local system where you want to download all the files.

But yes, first you need to run aws configure to add your access key and secret key, to grant access of bucket to CLI user.

You can check details on how to get access key here https://console.aws.amazon.com/iam/home?#/security_credentials

OR

If you don't like CLI commands, you can use https://cyberduck.io/ tool and use it's GUI to download S3 Buckets files, you need to simply enter your credentials there and download files.

1
At:- 11/29/2021 2:55:47 PM






Login/Register to answer
Or
Register directly by posting answer/details

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use

Subscribe Now

Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly