AWS S3 Wildcard copy


In order to download recursively from S3 using the AWS CLI to you can add the —recursive option however if you only want to download one type of file, xml for example, you can use the —exclude and —include options:



An example of this is:

aws s3 cp s3://BucketName . --exclude "*" --include "*.xml" --recursive

This will exclude all files first then re-include any XML files.

Comments are closed.