Hello Vagrant experts!
Is it possible to use config.vm.synced_folder to update the folder on the
host machine rather than overwriting it on the guest?
I have a package where nginx is already installed, and I am hoping to have
a copy of the /etc/nginx/ folder on the host machine, so that I can edit
the files in it without resorting to SSH. I discover that if I use...
config.vm.synced_folder 'nginx/', '/etc/nginx'
... then the /etc/nginx/ folder on the virtual machine is replaced by the
(intially) empty nginx folder on the host. What would be the options to use
to achieve this?
Or is there a completely different technique for copying these files from
the VM to the host, so that on the next vagrant up, the synchronization can
work as expected?
Thanks in advance,
James
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/3fbb36a9-73a1-49a3-998e-bcb73aac6fc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.