Copy multiple files from s3 bucket

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

    Also one can use the --recursive option, as described in the documentation for cp command. It will copy all objects under a specified prefix recursively.

    Example:

    aws s3 cp s3://folder1/folder2/folder3 . --recursive
    

    will grab all files under folder1/folder2/folder3 and copy them to local directory.

提交回复
热议问题