-
Notifications
You must be signed in to change notification settings - Fork 37
How to properly persist database changes? #171
Comments
Hi @rootical Thanks for bringing this up. Due to the use of volumes it is really a non-trivial operation to create truly persistent database. If re-importing is not an option then it gets trickier. In two sentences you'd need to modify docker-compose.yml so that db didn't use volume (then you'd need to re-create container with We will be creating more detailed instruction in the future as I believe it is a feature many would want to know how to use. |
@rootical this really depends on what you are trying to achieve. You mentioned too many things and it's not clear what it is that you are trying to achieve. The database is generally persistent so long as you do not destroy it along with other containers with Everything else is up to you. Make dumps, store them somewhere, update the In our development workflow we would import a DB from a remote server (via drush) or from a local file (stored in Git LFS or downloaded via other channels). |
Thanks for your answers, folks! Appreciate it. My bad, too many questions raised. But this is something very important and I guess prevents a number of people from using drude based setup. So far I can see the easiest way is to just work with dumps. But I would really appreciate just a step-to-step guide on how to do what @achekulaev suggests not to not run into many issues. Another thing to recap which is not really clear - is how could different people work on the same database source. Probably there should be an option with remote connection to a daemon or similar, have you already considered something like this? |
I believe what @achekulaev was referring is the DB sandbox mode. This is a pretty advanced use case and is documented here:
Again, please be more specific:
|
Hello guys, thanks again for your hard and nice work.
I have a question which is really basic and obvious and not really an issue, but I would like to hear your thoughts on that.
What is a database persistency workflow? While developing using drude, how do you do that?
How to make sure database changes wouldn't be erased when calling a
dsh init
, for instance?Shall I commit db changes to mysql container, shall I add a volume for it? And then just replace site installation in
init
script to actual import of a dumb? Or, again, a volume would be better here? What about multiple people working in parallel on something, how would merge database changes then?A one-two sentence in drude readme could help a lot with this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: