synack/tablesnap — pull request #28 by ethanmiller (2013-02-01 00:43:33+00:00)
Title: tablechop

Hi there! We realized we were accumulating a pretty sizable set of files in S3, and needed a way to keep them trimmed down. As described in tablechop -h :

Clean SSTables from S3. Scrolls backwards through -listdir.json keys in chronological order collecting a "keeper" list until it reaches it's age cutoff. Deletes all keys not in that list.

I've been running in QA with -a 30 (30 days of backup) and have tested by tableslurp-ing and restoring files to be sure I wasn't deleting anything I shouldn't be.

Feedback welcome, thanks.