Copy multiple files from s3 bucket

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

    As per the doc you can use include and exclude filters with s3 cp as well. So you can do something like this:

    aws s3 cp s3://bucket/folder/ . --recursive --exclude="*" --include="2017-12-20*"
    

    Make sure you get the order of exclude and include filters right as that could change the whole meaning.

提交回复
热议问题