About this question
I am unable to copy some files from a S3 bucket in AWS CLI
Adding * to the path is not helping:
aws s3 cp s3://personalfiles/file*
Don’t know how to use aws s3 cp wildcard. Please help
I am unable to copy some files from a S3 bucket in AWS CLI
Adding * to the path is not helping:
aws s3 cp s3://personalfiles/file*
Don’t know how to use aws s3 cp wildcard. Please help
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask AWS Expert
Answered on Nov 17, 2022
To download aws s3 cp multiple files from an aws bucket to your current directory, you can use recursive, exclude, and include flags. The order of the parameters matters.
Example command:
aws s3 cp s3://data/ . --recursive --exclude "*" --include "2016-08*"
For more info on how to use these filters: http://docs.aws.amazon.com/cli/latest/reference/s3/#use-of-exclude-and-include-filters
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step AWS guides from industry experts
Common AWS interview questions, answered
Guides, tips and career advice on AWS from JanBask experts.
AWS How to Become an AWS Certified Solutions Architect
Learn how to become an AWS Solutions Architect with our complete guide. Discover exam requirements, salary potential, and…
AWS AWS Solution Architect Salary in 2025 by Location, Skills, and Experience
The AWS Solution Architect Salary varies as per location, job role, skills, and more. Read this blog to learn how much an AWS…
AWS AWS Certification Cost, Courses, Exam Details, Path & Salary : The Comprehensive Guide
How Much Does AWS Certification Cost In 2025- Get aws certification price, types, and AWS certification course fees for your…
AWS Why AWS Training Certification is a Game-Changer for Your Career in 2025
Discover why AWS training certification is crucial in 2025. Learn how it boosts career opportunities, skills, and salary…