Hello

Shared folder goes from host to guest

what you can do is copy the folder out and then mount it on the guest

however will be a bit late (after servides start) and you will be need to
reload the services after.

So you can just copy the files to the location and restart/reload the
service in one single script. to keep things simple.

Alvaro

On Tue, Aug 29, 2017 at 6:33 PM, James Newton <[email protected]>
wrote:

> 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
> <https://groups.google.com/d/msgid/vagrant-up/3fbb36a9-73a1-49a3-998e-bcb73aac6fc3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
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/CAHqq0eychsEORGAeC%2BRfPzDZ8w_%2B3ekt9opSfqKXv3cgqS%2BsCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to