jneilliii / OctoPrint-BackupScheduler

11 stars 3 forks source link

[Feature Request] 'Smart' Backup Retention Option #4

Closed rekonnected closed 4 years ago

rekonnected commented 4 years ago

One unrelated data backup program I use, Duplicati, has a feature known as 'Smart' Backup Retention, where it retains the following:

It may be a bit overkill to back up your instance every day, but some people may back up that often, so it may be a good idea to include the 7-day interval anyway. Either way, having a 'smart' retention system could help manage disk space efficiently and effectively.

jneilliii commented 4 years ago

Kind of a duplicate of #2

rekonnected commented 4 years ago

2 is primarily for having multiple schedules of backing up, whereas this is more a strategy for managing backups already taken.

jneilliii commented 4 years ago

Yeah, I understand the son/father/grandfather concept for backups and is not a bad idea for a future release. For now though I just wanted to get something out there as there seemed to be a high demand for this scheduling aspect.

Lumute commented 4 years ago

+1 to add some kind of retention with automatic backup deletion to the plugin. Maybe it would be more logical to implement this before multiple schedules, then extend it when implementing that so each schedule has its own retention policy...

BTW, thanks so much for the great plugin! this is a feature that was really needed...

jneilliii commented 4 years ago

I more than likely will develop the two features together, because I can see implementing a son/father/grandfather approach will require the deletions to be handled separately anyway so separating the schedules will be a prerequisite. Just have to wrap my head around the logic for each of the three stages, daily, weekly, monthly and how to handle the workflow. My initial thought is once the 3 backup options are split, adding a retain for x option to each of those would allow for easier handling of the deletions. The only thing I think will be a hurdle is figuring out which of the backups were run for each of the schedules, so in the long run may have to incorporate a logging of the backup names as well to prevent any deletion of manually created backups, etc.

jneilliii commented 4 years ago

The latest release version 0.0.3 incorporated options for remedial backup retention.