Initial implementation of Time Machine style backup pruning.
Within 24 hours, all backups are kept. Within 1 month, only the most recent backup for each day is kept. For all previous backups, only the most recent of each month is kept. This is not *quite* the same as Time Machine, but this implementation is a lot easier to do since it is based on string comparisons of the dates and doesn't require any "hard" date logic. Also this commit just 'echo's what will be deleted, and does not actually delete anything yet because I am still testing it.
This commit is contained in:
@@ -42,8 +42,6 @@ An optional exclude file can be provided as a third parameter. It should be comp
|
||||
|
||||
* Check if there's enough space in the destination before doing the backup. Also automatically delete old backups.
|
||||
|
||||
* Manage the backups in a way similar to Time Machine - hourly backups for the past 24 hours; daily backups for the past month; weekly backups for the previous months.
|
||||
|
||||
# LICENSE
|
||||
|
||||
[MIT](http://opensource.org/licenses/MIT)
|
||||
|
||||
Reference in New Issue
Block a user