JeremyGrosser / tablesnap

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

Add include parameter #21

Closed ctavan closed 11 years ago

ctavan commented 11 years ago

I have the following use case: I only want to back up files ending with .gz. I could write a complicated exclusion rule to exclude fall files not matching that string but that would be tedious.

Consequently I've added another option --include which is mutually exclusive wrt --exclude and which allows specifying and inclusion pattern instead.

To retain backwards compatibility if none of the two options are given, then all files matchin -tmp will be excluded.

Should be merged only after #22

JeremyGrosser commented 11 years ago

Please rebase this against master.

ctavan commented 11 years ago

Rebased. Thanks for merging the other pull requests.