Vagrant destroy


Looks like my lab is acting up.

If I do a vagrant destroy and then provision, does that mean I have to redo all the labs starting from the beginning? :frowning:


One easy way is to copy all your mongod config files to your local system. Same way through /shared directory. Then you can copy them back there.


Thanks. I assume, you mean the while /var/mongodb right?

No. Suppose you have one configuration file and you want to move it to your local system. So, from Vagrant machine, copy that file to shared directory:

  vagrant@m103:~$ cp mongod.conf /shared