regexamazon-s3gets3cmdbuckets

filtered results with s3cmd get


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

  • s3cmd get --recursive s3://mys3bucket/logfiles/192.168