-
Notifications
You must be signed in to change notification settings - Fork 572
support for folder sync via rsync on windows. #67
Conversation
rsync interprets paths with colons as remote locations. This leads to "The source and destination cannot both be remote." erros when using local paths like c:\vagrant for the hostpath. This commits converts the hostpath to /cygdrive/... notation on windows in general. I confirmed that this works with the cwRsync Installer (https://www.itefix.no/i2/cwrsync).
+1. I am running into the same problem. Please merge this pull request. |
I have the same problem. Please merge this pull request. |
Agreed, I'm also having rsync issues, so merging this in would be great. |
From my experience there are two things you need to take care of in order to make it work on Windows:
Both mccloud and knife-solo solve this issue (synced folders via rsync) in the same way and it has proven to work on windows: edit: corrected link |
I have no special love for cwrsync. It comes as an installer and currently if you don't have cygwin installed its one of the easier ways to get it. In general I think rsync folder sync should be moved out of here and maintained somewhere central, probably as vagrant plugin or even as part of vagrant core. Looking at the other cloud providers (rackspace, digital ocean) this code was just copied and would be nice to fix them all at once. @mitchellh Any thoughts on that and/or vendoring rsync in the vagrant windows installer? |
@databus23 do you need the I'm just wondering... personally I prefer the rsync.exe from the cygwin package as it's closer to the original and there's no need to install a GUI application. Oh wait, and it's free :-) |
@databus23 fully agree, most providers will probably implement shared folders via rsync so it should be implemented once and for all in a more central place 👍 for vendoring the rsync and ssh executables |
Thanks @databus23 |
rsync interprets paths with colons as remote locations.
This leads to "The source and destination cannot both be remote." erros when using local paths like
c:\vagrant
for the hostpath.This commits converts the hostpath to /cygdrive/... notation on windows in general.
I confirmed that this works with the cwRsync Installer (https://www.itefix.no/i2/cwrsync).