Don't delete old backups on failure. Or delete old backups on successful backup.

I have weekly full and daily incremental scheduled backups configured as per documentation. I have it set to delete old backups after 7 days, I have it continue on errors so other servers get backed up in case one fails.

I had an incident where a virtual server failed on full backup and the previous full backup was deleted at the end of the script and we couldn't restore any files, leaving that particular virtual server without a backup at all.

It would be good if the delete older backups happen at the end of each successful virtual server backup, deleting backups only associated with that server.

That way if a server fails there's still the previous one there. Is that possible?

Status: 
Closed (fixed)

Comments

Currently this isn't possible, sorry - backup deletion is done on a dated directory basis, rather than per domain.

ok. So the safest bet is to halt backups on errors. cheers.

Actually, maybe it would make sense for Virtualmin to not purge old backups if any failure happens, even if backups of other domains proceeded..

It's not a bad idea .. However, it could potentially fill up storage space if the webmaster doesn't respond to a failure or two. But way better than that empty feeling you get when your data has been vaporised. ;)

Ok, I will look into making that change.

Great .. thanks for that. :)

Ok, in the next release I will add an option to not purge old backups if any of the domains being backed up fails.

Automatically closed -- issue fixed for 2 weeks with no activity.