How do i use wildcards to copy group of files in AWS CLI?

0 votes
For some reason, I am having trouble using * in AWS CLI to copy a group of files from a S3 bucket.

Adding * to the path like this does not seem to work

aws s3 cp s3://myfiles/file*

Any suggestions?
Jan 25 in AWS by datageek
• 2,830 points
264 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

If you are getting an error when using *, and if you want to download multiple files from an aws bucket to your current directory, you can use recursiveexclude, and include flags like this:

aws s3 cp s3://myfiles/ . --recursive --exclude "*" --include "file*"`
Try this out.
answered Jan 25 by Archana
• 5,280 points

Related Questions In AWS

0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,100 points
83 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,100 points
177 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.