I did add a PR for the documentation to add this example since is quite
handy
https://github.com/mitchellh/vagrant/pull/4788
Alvaro.
On Thu, Nov 6, 2014 at 8:54 AM, Alvaro Miranda Aguilera
wrote:
>
> On Thu, Nov 6, 2014 at 1:10 AM, San wrote:
>
>> *config2.vm.synced_folder "./scripts", syncDi
On Thu, Nov 6, 2014 at 1:10 AM, San wrote:
> *config2.vm.synced_folder "./scripts", syncDir+"/scripts", type: "rsync",
> rsync__exclude: "*.json", *
> * rsync__args:
> ['--verbose', '--rsync-path="sudo rsync"']*
Worked for me.
1. you hav
I think I already tried that before. But anyway, it still doesn't work.
So, this is in my Vagrant file now:
*config2.vm.synced_folder "./scripts", syncDir+"/scripts", type: "rsync",
rsync__exclude: "*.json", *
* rsync__args:
['--verbose'
well, if you got a working command line why not use it?
https://docs.vagrantup.com/v2/synced-folders/rsync.html
note is __ no _ between
rsync__args (array of strings) - A list of arguments to supply to rsync. By
default this is ["--verbose", "--archive", "--delete", "-z"].
config.vm.synced_
Thanks for the heads up Alvaro!
The user that is used to do the remote login for rsync, got full sudo
access and there was a company-wide decision we took to put some stuff
under the /root location for some security reason. I can do the easily from
the command line using a command, equivalent to
hello,
the user that does the ssh is what does the copy..
HOST -> guest user by ssh, say vagrant -> file (owner vagrant)
If you can explain a bit more the requirement, I can give you some
suggestions,
If root user is 100% required, I probably will use a shell provider after
the sync, to move an
I need to be able to sync some stuff in /root directory: Is there a way I
can rsync as root-user or with sudo. It's possible with rsync command from
the CLI, using --rsync-path="sudo rsync" option. Is it anything similar in
Vagrant available? My attempt of using owner: "root", group: "root" in