Vagrant – backup and restore environment

This post is related to previous post "Vagrant with multiple machines and ports".

1. Backup boxes

Remove file 70-persistent-net.rules on appsrv and monsrv before backup:

ssh -i ~/.vagrant.d/id_rsa vagrant@127.0.0.1 -p 3333 'sudo rm -f /etc/udev/rules.d/70-persistent-net.rules'
ssh -i ~/.vagrant.d/id_rsa vagrant@127.0.0.1 -p 4444 'sudo rm -f /etc/udev/rules.d/70-persistent-net.rules'

Continue reading