Copy multiple files from s3 bucket

后端 未结 6 607
庸人自扰
庸人自扰 2021-02-01 15:00

I am having trouble downloading multiple files from AWS S3 buckets to my local machine.

I have all the filenames that I want to download and I do not want others. How c

6条回答
  •  孤独总比滥情好
    2021-02-01 15:39

    Tried all the above. Not much joy. Finally, adapted @rajan's reply into a one-liner:

    for file in whatever*.txt; do { aws s3 cp $file s3://somewhere/in/my/bucket/; } done
    

提交回复
热议问题