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', '--rsync-path="sudo rsync"']* and it returns the error (permission denied): *There was an error when attempting to rsync a shared folder.Please inspect the error message below for more info.Host path: /Volumes/Hobo/GDrive/Scripts/projVagrant/AWS/scripts/Guest path: /root/p1/scriptsError: Warning: Permanently added '10.214.20.99' (RSA) to the list of known hosts.rsync: ERROR: cannot stat destination "/root/p1/scripts": Permission denied (13)rsync error: errors selecting input/output files, dirs (code 3) at main.c(583) [Receiver=3.0.9]rsync: connection unexpectedly closed (8 bytes received so far) [sender]rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]* as opposed to, if the I run the same command from the command line: UKMAC08:AWS sans$ rsync -abvz -e "ssh -i key1.pem" --rsync-path="sudo rsync" --exclude="*.json" "./scripts" [email protected]:/root/p1/scripts building file list ... done scripts/ scripts/.DS_Store scripts/init.sh scripts/running-p1-instances.txt sent 2922 bytes received 158 bytes 362.35 bytes/sec total size is 12372 speedup is 4.02 Anything I'm doing wrong in the Vagrantfile? Best! -- 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]. For more options, visit https://groups.google.com/d/optout.
