-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add restore hooks feature #213
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks for the PR! I'm not 100% on board with the config file. I think it is a bit messy and confusing if we have 2 sections for hooks. one called Probably something better would be to move the locations:
home:
from:
- /home/user/Desktop
to:
- hdd
hooks:
backup:
before:
- echo this is before backuping
restore:
after:
- echo this is after restoring This would habe breaking changes to the config though. Thoughts? And sorry for the long wait! |
Yes, I didn't want to introduce a breaking change but it would be definitely better. I'm ok to introduce this breaking change but how to handle the old config ? One could simply warn users about the change and those who have not changed the file might encounter problems (this would not be great for a backup tool). |
I just saw how to handle it in |
a41bea0
to
b91b94f
Compare
@cupcakearmy The configuration file has been changed, I wrote a little piece of docs to explain the new feature and to explain how to migrate the old configuration file. Can you give me feedback ? |
b91b94f
to
bb9dee5
Compare
bb9dee5
to
f43cc32
Compare
Hi @cupcakearmy, any news on this PR ? Is the new config file ok for you ? |
Hey @cupcakearmy I am sorry to ping you again ;). Do you have suggestion to get this PR merged ? |
Hey, yes! No worries :) Thanks for all the work, I know it's frustrating when prs don't get merged. The reason I was waiting is because I'm rewriting the whole logging stuff and touching a lot of files. However I won't be finished anytime soon so I guess we could merge this. |
Before merging this PR I had an idea in this comment in #257 #257 (comment). I think it can help to build snapshot more easily (A location is more of a snapshot/group than actually a location/path) for example when you want to backup a service deployed with docker compose you might want to backup a database dump, a volume containing data and the deployment files in the same snapshot. |
Please, this is so much needed ! 🙏 |
Hi!
This PR attempts to add the feature requested in #173
fix #173
You can configure these hooks in a new
restore
node in thelocation
object, for example:The workflow is the same as backup hooks.