Backups not working as expected

Agility

Verified User
Joined
Apr 3, 2021
Messages
12
Hi there guys

I have a Daily Backup running with Append set to Day Of week.
This enables daily backups with a 1 week retention which is great.

The issue is, if Accounts/Users get deleted, all the backups remain as the backup seems to be set to "Overwrite" and the old clients backups never get removed.

My expectation is that the Folder get deleted before the backups run, as now I have to go through each Daily backup folder and remove the deleted clients from the backup directories or they remain there forever.

Any solutions to this?

Thanks

Walter
 
cron find -mtime delete.
But described behavior is correct - because client can turn back in few weeks/moths and ask to restore his account. Our practice shows that optimal to keep backups 2 years, yes it will be 1 restore per 100-150 deleted accounts, but it worth it when people didn't have own copies.
 
cron find -mtime delete.
But described behavior is correct - because client can turn back in few weeks/moths and ask to restore his account. Our practice shows that optimal to keep backups 2 years, yes it will be 1 restore per 100-150 deleted accounts, but it worth it when people didn't have own copies.

Disagree, thats why I use weekly/monthly backups and retention.
Also, whenever a client leaves, I move the latest backup to my permanent storage location as Ive had clients come back after 5 years etc
 
I mean the same - you didn't say that you have another backups in first post.
just add to cron something like this:
45 23 * * * /usr/bin/find /backup/weekly/ -type f -mtime +8 -delete
or your own: https://en.clihelper.com/find/
 
Back
Top