-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Pre/Post backup routine scripts #45
Comments
This is a good idea, but also pretty tricky to implement. Mounting a script into the backup container and running it on certain occasions would be very simple, but won't be of much help as you likely want to run these scripts inside the application containers. This could be done using labels containing a command on the application containers, but that creates a few other obstacles:
Considering this feature would take quite some time to implement and I don't need it myself I probably won't implement it too soon (there are other missing features like #29 that I would be using myself). If anyone wants to work on this though I am happy to give advice and merge PRs. |
I started working on this here https://github.com/offen/docker-volume-backup/tree/exec-commands |
This is now supported as of v2.13.0. |
I'm submitting a ...
What is the current behavior?
No ability to reference pre and post backup scripts
If the current behavior is a bug, please provide the configuration and steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Ability to reference scripts as part of the backup routine. For example, I could reference a database script to create a backup and then have docker-volume-backup tool backup the flat file, and all while leaving the database running. Or pihole is also the current use case I have as I don't want to take it down if I don't have too. Referencing a simple custom pre-backup script could solve this.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
The text was updated successfully, but these errors were encountered: