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 Doesn't Handle Absolute Paths Well #18

Closed geoffreywiseman closed 13 years ago

geoffreywiseman commented 13 years ago

If you prune an absolute path, the backup directory doesn't seem to come out properly:

$ ~/projects/prune/prune /opt/backups/mysql Archive folder /opt/backups/opt/backups/mysql-archives does not exist and cannot be created.

You can see that /opt/backups/ appears twice in the expected directory name.

geoffreywiseman commented 13 years ago

This was a defect on an older version of prune that I was unintentionally loading.