I've got an issue with backup retention policy in PBS. Namely how `keep-hourly` works.
Documentation clearly states:
However it does not retain backups from last <N> hours but instead it keeps <N> backups that are newest in given hour.
Here are two cases:
1. backup is done every day, every 2 hours
2. backup is done every day at 21:15
Retention policy is set to keep-hourly: 48
My understanding of documentation is that this option will consider 48 hour window and keep newest backup from given hour, so for given two cases:
1. 24 backups are kept
2. 2 backups are kept
But given how this works retention policy is strictly tied to backup schedule. If i would like to keep newest hourly backup for last two days i need to setup different retention policy for both cases:
1. keep-hourly 24
2. keep-hourly 2
It is manageable but it would make more sense to untie retention policy from schedule as schedule is set on client and policy is set on server.
				
			Documentation clearly states:
keep-hourly <N>
Keep backups for the last <N> hours. If there is more than one backup for a single hour, only the latest is kept. Hours without backups do not count.
However it does not retain backups from last <N> hours but instead it keeps <N> backups that are newest in given hour.
Here are two cases:
1. backup is done every day, every 2 hours
2. backup is done every day at 21:15
Retention policy is set to keep-hourly: 48
My understanding of documentation is that this option will consider 48 hour window and keep newest backup from given hour, so for given two cases:
1. 24 backups are kept
2. 2 backups are kept
But given how this works retention policy is strictly tied to backup schedule. If i would like to keep newest hourly backup for last two days i need to setup different retention policy for both cases:
1. keep-hourly 24
2. keep-hourly 2
It is manageable but it would make more sense to untie retention policy from schedule as schedule is set on client and policy is set on server.
	
	