-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Preserving Last Backup of Each Year: Configuring Backup Retention #196
Comments
This is not really possible out of the box right now. I'm also not sure if a rule engine complicated enough to cater for this case would be in scope for this project still. What you can do however is define a |
i will try |
Closing this as a duplicate of #93 - if you have further questions, feel free to comment in there. Thanks. |
If anyone asks for the solution, this is mine pruning.sh
Dockerfile
docker-compose labels
|
Thank you for sharing! |
What are you trying to do?
I was wondering if it would be possible, through some configuration, to prevent the deletion of the last backup of each year.
For example, if it is 31st December 2022, and I perform a backup, two days later, according to my configuration, the 31st backup will be deleted, is it possible to not delete it?
For instance, by moving each backup to its own folder, such as backup/2022, backup/2023, and every time you look for the backups to delete, deleting them in the current year's folder, or for each year the backups of BACKUP_RETENTION_DAYS are deleted but starting from December 31st, that is, according to my configuration, BACKUP_RETENTION_DAYS=2, the backups of December 31st and December 30th will remain in the system.
What is your current configuration?
The text was updated successfully, but these errors were encountered: