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 个月前733 查看次数
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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容