2 Answers
- Newest
- Most votes
- Most comments
1
Did you consider using "include" and "exclude" filters while using s3 sync or cp CLI. I assume, your nodejs specific files would certain defined prefix or suffix.
You can try something like this:
aws s3 sync s3://bucketname/ . --exclude "*" --include "nodejs_files_pattern*"
Let me know if that doesn't help. Happy to assist further.
Abhishek
1
Hello,
It is possible to download the specific files with prefix and suffix. In your case you have requirement to download only .js extension files so follow this CLI Command to get the files.
aws s3 cp s3://your-bucket-name/path/to/your/folder . --recursive --exclude "*" --include "*.js"
Replace your bucket name and your directory path to filter files in your bucket.
Thank You
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
