Hey there,
forgive me if this is a dumb question. I've been trying to find a definitive answer somewhere but I can't, which leads me to believe i'm not quite seeing something I should be.
I'm trying to figure out how best to work with databases and vagrant. Up til now, my work with vagrant has just been static and or javascript/json based so i've not had to deal with databases in this way. Now however I'm working in wordpress it becomes a little more critical; i don't want to waste my time repeating myself.
Once I've installed wordpress and added some content into the site, how do i make sure I don't lose the content in the database?
If I do some work and then call "vagrant halt" that doesn't do away with the box, but if I use "vagrant destroy" that kills the database and the content inside it completely, right?
My development environment makes use of Bittorrent sync so if I need to work on my laptop I can. However each time I switch from my desktop to my laptop and use "vagrant up" it provisions the machine again (i think) -- that obviously means the database work gets wiped, but I don't know how to make sure that gets carried across, short of exporting the database on a regular basis and putting it into a shared folder to import on the other machine.
Sorry if that's a bit longwinded. Any help would be really appreciated!
Cheers
Lee