Search code examples
laravelvagrantrsyncshared-directory

How do I use rsync shared folders in Vagrant on Windows?


I’m using Laravel Homestead to develop projects locally. Requesting a single view takes up to 6 seconds, so I wanted to increase the performance with rsync.

I installed cwRsync into a “C:\rsync” folder and added “C:\rsync\bin” to my PATH variable.

In the cmd the “rsync” command works fine globally but after I triggered “vagrant up” I get this error:

==> default: Checking if box 'laravel/homestead' is up to date...

==> default: Clearing any previously set forwarded ports...

"rsync" could not be found on your PATH. Make sure that rsync
is properly installed on your system and available on the PATH.

What can I do so vagrant recognizes rsync? Like I said, it works fine in the windows commandline. Thank you!


Solution

  • You have added the directory/folder to the USER PATH instead of SYSTEM PATH.

    Try that and it will work.

    If you have further problems just install cygwin.