I have had 2 backup schedules running for several months. The "weekly" ran on Sunday with a retention of 4 and the "daily" ran Mon-Sat with a retention of 6 (set in the backup job - not the Storage). I think it was about 3 weeks ago I noticed that while the daily retention for each individual VM/CT was rolling over as expected but the weekly job was now pruning everything but the most recent backup. I just verified that this morning.
Today I did some googling and see that instead of letting the backup job specify the retention I could apply a retention on the Storage itself in Datacenter > Storage > ID > Edit > Backup Retention. I created a backup job of a single LXC and initially set Keep Last to 1, Keep daily to 5, and Keep Monthly to 4 but after running the job manually twice it deleted the first backup. I changed Keep Last to 10 (one more than daily+monthly) and have it running every 30 minutes to test.
If I want to save 6 daily backups and 4 monthly backups of each VM/CT, is this the right way to globally apply a retention? How does the backup scheduler know when to mark a backup as a Monthly and retain 4 versions, vs. a daily for 6, especially if there is only one job? Other than my "comment" in the job itself what differentiates a daily from weekly or monthly job for retention purposes? Thanks!
Today I did some googling and see that instead of letting the backup job specify the retention I could apply a retention on the Storage itself in Datacenter > Storage > ID > Edit > Backup Retention. I created a backup job of a single LXC and initially set Keep Last to 1, Keep daily to 5, and Keep Monthly to 4 but after running the job manually twice it deleted the first backup. I changed Keep Last to 10 (one more than daily+monthly) and have it running every 30 minutes to test.
If I want to save 6 daily backups and 4 monthly backups of each VM/CT, is this the right way to globally apply a retention? How does the backup scheduler know when to mark a backup as a Monthly and retain 4 versions, vs. a daily for 6, especially if there is only one job? Other than my "comment" in the job itself what differentiates a daily from weekly or monthly job for retention purposes? Thanks!