backrest icon indicating copy to clipboard operation
backrest copied to clipboard

Retention by count and time period

Open alaw005 opened this issue 7 months ago • 2 comments

If backups run every 10 minutes and retention is set by time period eg with hourly = 24 the immediately previous backup from 10 minutes ago is deleted. I want to keep the last 6 (or x) backups and hourly after that, plus any further day, week, month, year setting.

This could be achieved by allowing rention to be set both by count and by time period at the same time. If retention by count is set to x then that many of the most recent backups would be kept and any additional backups deleted UNLESS those backups would otherwise be kept based on the retention by time period setting. In other words only delete backups that don't meet either retention policy.

alaw005 avatar Jul 01 '24 09:07 alaw005