-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Epic] add support for restore hooks #2116
Comments
For a postgres dump done with a pre-hook backup : |
If there was post hook for restore I could use it to restore a dump previously done with pre hook backup. Example if we have this annotation for pre hook backup
the following post hook restore could be used to restore the dump
|
This is would be really neat, we are also in the same spot as @konvergence where we are planning on using the hooks to trigger the database dump during backup, and would love to be able to automate restore as well |
@marccampbell I think we'd definitely like to do this, but it's not currently prioritized. If you're interested in taking the lead on a design proposal, let us know and we can help provide input! |
@skriss i'd love to take the lead on a design proposal for this. |
We (@cloudfoundry-incubator/bosh-backup-and-restore-team) would love to help contribute on this too :) |
@marccampbell @aclevername that'd be great! we have a design docs directory here: https://github.com/vmware-tanzu/velero/tree/master/design There's a template, as well as all of our existing docs. I'd recommend first putting up a draft PR with an incomplete design doc that covers goals/non-goals and high-level design, so folks have a chance to comment on those high-level sections before you spend time going into more detail. |
Product requirements tied to issue vmware-tanzu#2116 vmware-tanzu#2116
@marccampbell we'll be moving the deep dive out by a few days to mid/late next week. I will send details your way on that. |
I'd appreciate a feature like this as well! |
Closing issue with the release of v1.5.1 |
Describe the problem/challenge you have
When backing up some volumes, we have a pre and post backup hook implemented. This is useful when we have a process that has a lock on a file and we need to copy data between volumes to ensure that the data Velero is backing up will be uncorrupted and usable. But on a restore, there is no hook to execute a pre or post restore script. This makes automating a restore a little difficult because we need to rely on a separate set of tools when restoring vs when backing up.
Describe the solution you'd like
One possible solution to this is to add restore hooks, so they can be specified similar to how backup hooks are specified. If we are restoring data that was collected using a pre-hook, then we could write the reverse post-restore hook in the configuration to put the data back into the format or restart a process.
The text was updated successfully, but these errors were encountered: