You are here
bhruska - Tue, 2021/05/18 - 15:52
I've had my server backed up with the hub for some time, and I just noticed it is not respecting the number of sessions when I limit it to 10. Therefore, it just keeps using more space. What's up with that? This is costing much more money than it should.
Thanks,
Brian
Forum:
Hi Brian, "max backups" only counts full backups
I assume you are referring to "Max backups" in the Hub (can be set for each backup record). If so, that only counts full backups. By default, with TKLBAM enabled on your server, full backups occur monthly, with daily incremental backups. (Difference between full and incremental backups).
So with the current TKLBAM defaults, and "Max backups" in the Hub set to 10, you will end up with a maximum of 11 x ~30 individual backup sessions stored. (The oldest full backup and the ~30 incrementals that depend on it, will not be deleted until the 11th full backup completes successfully).
I'm guessing that you were not aware of some of the above? Assuming that there has been some confusion and it is working as we intend, and you want to trim your backups down you have 2 choices:
Reduce max backups.
If you are happy to keep a full months worth of backups (actually will store not quite 2 months) then simply set "Max backups" to 1.
Store only 10 days worth of backups.
If you really only want 10 individual sessions (will actually save up to 20 sessions as per above "rules") then you'll need to change the TKLBAM full backup frequency on your server. Do that in the TKLBAM conf file; /etc/tklbam/conf. It contains as much info as you should need:
As you can see there, the default is "1M" (one month). So just change the "full-backup" line to 10 days:
Actually here's a one liner to do it for you:
Double check it with grep:
Either way...
Either way, any changes to max backups won't actually occur until you next push a backup. If you want to clear out all the history, then you can push a new full backup like this:
Hope that helps.
Clears it up
That's a nice comprehensive answer, thanks!
Thanks,
Brian
Add new comment