-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retention by count and time period #365
Comments
Interesting, it hadn't ever occurred to me that there's a use case for Will track popularity of this FR in the meantime for my prioritization. |
+1 for this feature, please. Right now I can't use Backrest for anything more frequent than hourly backups, as the last ones just get pruned. :( This command is an example of how I would do it on the cli, keeping all backups incl. ones that run every 15 min:
|
First of all thanks, backrest is indeed pretty nice!. |
In addition to this I think the retention policy explanation on the web interface is not correct. It says However backrest is using the For example if I specify |
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.
The text was updated successfully, but these errors were encountered: