s3cmd get --recursive s3://mys3bucket/logfiles/192.168
filtered results with s3cmd get
Question
I'm using cmd tool for AWS S3 called s3cmd. I'm trying 'get' set of folders filtered by front part of name directory name like '/192.168.*/'. Basically I have S3 bucket with a lot of directories and I just need couple of them that start with particular string. Here is what I have so far. Will be grateful for any kind of help :) Thank you!
s3cmd get --recursive --include '192.168*' s3://mys3bucket/logfiles/
Code above pulls down all the directories from /logfiles/. :(
Solution
OTHER TIPS
If you want to "filter" for files that match a certain name, you can do this:
s3cmd get --recursive --exclude '*' --include 'filename*' s3://my-bucket/cheese
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow