Notifications
Clear all

Downloading an entire S3 bucket  

  RSS

Abhijith
(@abhijith)
Noble Member
Joined: 4 months ago
Posts: 1161
29/03/2021 1:17 pm  

Is there an option to download the entire s3 in aws management console?

Is there an easy way to grab everything in one of my buckets? I tried making the root folder public, using wget to grab it all and then making it private again but I don't know if there's an easier way.


Quote
Sathish Kumar
(@sathish)
Member Moderator
Joined: 4 months ago
Posts: 1203
29/03/2021 1:17 pm  

On AWS CLI you can use

Command:

aws s3 sync s3://mybucket .

Output:

download: s3://mybucket/test.txt to test.txt
download: s3://mybucket/test2.txt to test2.txt

This will download all of your files. It will not delete any existing files in your current directory, and it won't change or delete any files on S3.

You can also do S3 bucket to S3 bucket, or local to S3 bucket sync.

 


ReplyQuote
Share: