To download 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
Related Contents:
- Downloading an entire S3 bucket?
- The AWS Access Key Id does not exist in our records
- AWS CLI S3 A client error (403) occurred when calling the HeadObject operation: Forbidden
- How do I delete a versioned bucket in AWS S3 using the CLI?
- How list Amazon S3 bucket contents by modified date?
- How can I get the size of an Amazon S3 bucket?
- Deleting S3 files with a given prefix only
- Get ARN of S3 Bucket with aws cli
- AWS create role – Has prohibited field
- AWS S3 sync –delete, removed new files in local
- Can I force CloudFormation to delete non-empty S3 Bucket?
- SSL CERTIFICATE_VERIFY_FAILED in aws cli
- How to delete multiple files in S3 bucket with AWS CLI
- AWS CLI S3: copying file locally using the terminal : fatal error: An error occurred (404) when calling the HeadObject operation
- Copy multiple files from s3 bucket
- Can’t Delete Empty S3 Bucket
- A client error (400) occurred when calling the HeadObject operation: Bad Request Completed 1 part(s) with … file(s) remaining
- Is there any way to get s3 uri from aws web console?
- How to rename files and folder in Amazon S3?
- When to use Amazon Cloudfront or S3
- AccessDenied for ListObjects for S3 bucket when permissions are s3:*
- How to make all Objects in AWS S3 bucket public by default?
- How do you search an amazon s3 bucket?
- Technically what is the difference between s3n, s3a and s3?
- Amazon S3 exception: “The specified key does not exist”
- How do you set a default root object for subdirectories for a statically hosted website on Cloudfront?
- Backup strategies for AWS S3 bucket [closed]
- Amazon AWS Filezilla transfer permission denied
- AWS CloudFront redirecting to S3 bucket
- No Cache-Control Header for files from AWS CloudFront with S3 Origin
- How to list all VPC dependencies in AWS CLI?
- No targets available when trying to set alias target from Route 53 to S3
- Restore a versioned S3 bucket to a particular point in time
- Forcing CloudFront to pass-through the latest HTML file from S3
- Amazon S3 Console: How to find total number of files with in a folder? [duplicate]
- Exclude multiple folders using AWS S3 sync
- Are S3 buckets region specific?
- AWS CloudFront access denied to S3 bucket
- how to return items in a dynamodb on aws-cli
- How to make CloudFront never cache index.html on S3 bucket
- For an Amazon S3 bucket deployment from GitHub how do I fix the error AccessControlListNotSupported: The bucket does not allow ACLs?
- CNAME entry not working on NameCheap using Amazon Certificate Manager [closed]
- https on S3 WITHOUT cloudfront possible?
- Redirect to index.html for S3 subfolder
- Is there a way to export an AWS CLI Profile to Environment Variables?
- Restricting access to CloudFront by IP
- How to edit files in AWS S3 in the browser?
- Possible to get multiple object from Amazon S3 in single request?
- How do I to forward example.com to www.example.com at godaddy for s3 hosted site?
- Terraform AWS Provider Error: Value for unconfigurable attribute. Can’t configure a value for “acl”: its value will be decided automatically