I adjusted the Vagrantfile a bit, so it automatically imports the database on up, resume, reload and exports it on halt, suspend, destroy. Maybe that’s a start?
Thanks fullyint!
I read up on the Synced Folders option in Vagrant and tried adding the following line to my Vagrantfile:
config.vm.synced_folder "../db", "/var/lib/mysql/example_wp", owner: "root", group: "root"
and added the folder db in my main project folder.
When running vagrant up the folder seems to be mounted correctly:
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
default: /vagrant =>~/Dropbox/Websites/example/ansible
default: /var/lib/…