-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Better Pruning #93
Comments
It's definitely possible to implement a more sophisticated mechanism, however I don't think I will work on it myself for the following reasons:
That being said in case anyone else wants to pick this up and implement something like this, I am open for discussion. On a side note, another possible approach would be using post-exec hooks for triggering something like rotate-backups or similar. I never tried this though, but I think it could work. |
Thanks for tagging this as an enhancement, i would like to help, but it's a bit outside my comfort zone (zero Golang experience) to take this one on by myself. I agree that it might be a tricky feature to implement, but perhaps the Restic
|
As a workaround you could execute multiple instances of this tool with different backup-filenames / prefixes. This way you could replicate some of the behaviour (like monthly backups for the last 6 years & daily backups for the last 2 months & hourly backups for the last 2 days). This can even be done with docker-compose "overrides" (docker-compose.yml -f base.yml -f monthly.yml) where the base config is in base.yml (like GPG and S3 bucket name etc.) and monthly containing the CRON and the prefix / filename and retention configuration. Maybe this could be added as a recipe to the README? |
This is a great suggestion, thank you very much. Also note that you wouldn't even need to use multiple instances but could also mount multiple configuration files for each schedule as described here: https://github.com/offen/docker-volume-backup#run-multiple-backup-schedules-in-the-same-container |
I added a section on this to the README: https://github.com/offen/docker-volume-backup#define-different-retention-schedules |
This is still relevant, even if it's just for explaining the workaround. |
Maybe adding a parameter like |
I like this straightforward solution to backup my Docker Volumes.
Unfortunately "The mechanism used for pruning old backups is not very sophisticated" some kind of Policy based pruning would be nice.
Any thoughts on if it's possible / doable to implement something like this?
The text was updated successfully, but these errors were encountered: