Copy multiple files from s3 bucket

后端 未结 6 612
庸人自扰
庸人自扰 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:42

    There is a bash script which can read all the filenames from a file filename.txt.

    #!/bin/bash  
    set -e  
    while read line  
    do  
      aws s3 cp s3://bucket-name/$line dest-path/  
    done 

提交回复
热议问题