Discussion:
[vagrant-up] Backup strategy for minimal Vagrant backup
Todd Chaffee
2018-10-19 18:03:20 UTC
Permalink
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
2018-10-20 23:40:04 UTC
Permalink
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.
Post by Todd Chaffee
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/6e50fe79-ec5c-4c60-bf0d-16441633787b%40googlegroups.com
<https://groups.google.com/d/msgid/vagrant-up/6e50fe79-ec5c-4c60-bf0d-16441633787b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
JP Toto | ***@gmail.com | http://jptoto.jp | @jptoto
<http://twitter.com/jptoto>
--
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/CAAYNrX8NGVKJa8Ubjh1SbiM2duPsvYszb-XD%3Dk2UXGb-OrNubA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Todd Chaffee
2018-10-21 12:29:15 UTC
Permalink
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.
Post by JP Toto
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.
Post by Todd Chaffee
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/6e50fe79-ec5c-4c60-bf0d-16441633787b%40googlegroups.com
<https://groups.google.com/d/msgid/vagrant-up/6e50fe79-ec5c-4c60-bf0d-16441633787b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
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/97d764bb-7497-4e99-a5e3-0e635f27e36c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...