geoffreywiseman / prune

A simple utility for pruning files based on date as a means of keeping increasingly sparse backups.
http://geoffreywiseman.github.com/prune
The Unlicense
2 stars 0 forks source link

Prune Overwrites Archive File(s) #20

Closed geoffreywiseman closed 13 years ago

geoffreywiseman commented 13 years ago

Prune doesn't only write an archive when it has a full month's data -- so that means it might repeatedly write a particular month's archive, overwriting past archives in the process. Ugly.

It should either append to pre-existing archives, or it should only write an archive when it has a full set, or possibly even both. (Try not to write an archive 'til you have all the files for that month, but append to it if you discover later that there are more files.)

geoffreywiseman commented 13 years ago

This is ugly; the only reason I didn't notice this until recently is that I was using an older version of prune that wasn't archiving at all.