Post

AWSAWS

k
kavya A

Posted on 5th March 2024|199 views

0
votes

In AWS CLI, How To Use Wildcards In Order To Copy A Group Of Files?

Hi, I am unable to copy file groups from S3 bucket in AWS CLI. I am Using this path aws s3 cp s3://myfiles/file*, adding a ‘ * ‘ is not working. Please help me out thanks in advance.

Answers
P
Aryan Sharma

Posted on 5th March 2024

If there is an error while using ‘ * ’ you can also use recursive, include, and exclude flags like 

 

aws s3 cp s3://myfiles/ . --recursive --exclude "*" --include "file*"`

 

This should be helpful.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos