JeremyGrosser / tablesnap

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

Optionally delete files after uploading #85

Closed juiceblender closed 6 years ago

juiceblender commented 6 years ago

This is just a very simple patch to optionally delete the file after uploading. This could be useful for backing up files that have been hard linked, so that after uploading they are straight deleted :) I've been thinking of using a timer to watch the directory, but there's no real way to tell if the file is safe to delete (if it's in the process of uploading, etc)

Let me know if there are any problems.

JeremyGrosser commented 6 years ago

Already manually rebased and merged.