Backup strategy for minimal Vagrant backup

32 views
Skip to first unread message

Todd Chaffee

unread,
Oct 19, 2018, 2:03:20 PM10/19/18
to Vagrant
I want to back up the minimal files to be able to recreate my Vagrant boxes. Assuming that I have automated the provisioning of each box, is it safe to exclude the .vagrant.d directory? I am also excluding the 'VirtualBox VMs' directory. My assumption is that everything can be re-created after a restore just from the Vagrantfile and by running 'vagrant up'.

JP Toto

unread,
Oct 20, 2018, 7:40:22 PM10/20/18
to vagra...@googlegroups.com
Todd,

Generally that's correct. However any changes made outside your Vagrant file and provisioning scripts will not be saved. For example, if you log into the VM manually and create/save data, that will not be saved by saving only the Vagrantfile file.

On Fri, Oct 19, 2018 at 11:03 AM Todd Chaffee <tchaff...@gmail.com> wrote:
I want to back up the minimal files to be able to recreate my Vagrant boxes. Assuming that I have automated the provisioning of each box, is it safe to exclude the .vagrant.d directory? I am also excluding the 'VirtualBox VMs' directory. My assumption is that everything can be re-created after a restore just from the Vagrantfile and by running 'vagrant up'.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6e50fe79-ec5c-4c60-bf0d-16441633787b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
JP Toto   |   james....@gmail.com   |   http://jptoto.jp   |   @jptoto

Todd Chaffee

unread,
Oct 21, 2018, 8:29:15 AM10/21/18
to Vagrant
Jp, thanks for your answer and that extra detail to be aware of. That makes sense, and all my Vagrant boxes can be safely recreated from scratch via provisioning scripts so I should be good.
Reply all
Reply to author
Forward
0 new messages