I just recently discovered s3cmd, and it's working very nicely for me.  I'm 
using it to store a series of log files in an S3 bucket, and the sync command 
is performing beautifully.

Now, I'm working on doing some retrievals, with an eye toward a future time 
when I may need to pull down a range of logs to investigate an issue, such as 
all the logs from a particular day, or pertaining to a particular site, device, 
etc.  I was hoping to do this with a filter on the ls and or get commands.

Here's what I have tried:

A general listing works just fine, showing me the full list of files in the 
desired folder.
s3cmd ls --config={path to config}  "s3://{bucketname}/{foldername}"

Grep on that result shows me the desired list, in this case all logs uploaded 
on the given date.  (but obviously wouldn't work for a get)
s3cmd ls --config={path to config}  "s3://{bucketname}/{foldeername}" | grep 

Filtering with --rinclude does NOT produce the hoped for result.  Instead, it 
lists the same information as the first unfiltered command.
s3cmd ls --config={path to config} --rinclude='2018-03-13' 

Am I misunderstanding the use of the rinclude?  Or do I just have some simple 
error in my syntax?  If there's a good list of command examples out there, that 
would be delightful!

Garrett Michael Hayes
Systems Administrator

4350 Ball Ground Highway
Canton, GA 30114
Office: 770-721-8380

This message and any attached files contain confidential information and is 
intended solely for the specific recipient. If you are not an intended 
recipient you are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly prohibited 
and are hereby notified to delete this message and any copies of it. E-mail 
transmission cannot be guaranteed to be secure or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. The sender therefore does not accept liability for any errors 
or omissions in, or damaged caused by, the contents of this message.

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
S3tools-general mailing list

Reply via email to