Copy multiple files from s3 bucket

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

    You might want to use "sync" instead of "cp". The following will download/sync only the files with the ".txt" extension in your local folder:

    aws s3 sync --exclude="*" --include="*.txt" s3://mybucket/mysubbucket .
    

提交回复
热议问题