JeremyGrosser / tablesnap

Uses inotify to monitor Cassandra SSTables and upload them to S3
BSD 2-Clause "Simplified" License
181 stars 86 forks source link

tablechop #28

Closed ethanmiller closed 11 years ago

ethanmiller commented 11 years ago

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.

thekad commented 11 years ago

I must point out that I rather preferred "tablecloth" for the name instead. :clap:

ethanmiller commented 11 years ago

hehe, dunno, 'chop' seemed to fit the short verb pattern ...