How can multiple files in my S3 Bucket be dowloaded as a batch vs one at a time?

0

I am trying to download data for a movie and there are multiple files in my S3 bucket. Is there a way to download them as a batch versus one at a time? This process is time-consuming.

已提問 10 個月前檢視次數 731 次
1 個回答
0

Since S3 doesn't support wild card characters so there is no direct way of doing that. If you can have files in a single folder within s3 then you can download all files at once by downloading that entire folder through CLI as s3 console won't let you download folder as well.

Here is how you'd download all files within a folder, in this example I'm downloading all files with .gzip extension:

aws s3 cp s3://<bkt_name>/<folder_name>/ ./ --profile <cli_profile_name> --recursive --exclude "*" --include "*.gzip*

See AWS S3 CLI for various exclude-include options along with s3 cp command synopsis.

This may not be the exact thing, that you'd be expecting but this is the way with which you can download multiple files.

Hope you find this usful.

Abhishek

profile pictureAWS
專家
已回答 10 個月前
  • Do you have any additional questions, happy to help.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南