Rsync from linux to windows without smb mount

I would like to use rsync to mirror a git repository from a Linux machine to multiple windows servers. What I can see on the net right now are solutions that require you to mount Windows using samba. ideally I would like to avoid this, because it would require managing multiple mounts, not to mention security concerns. I have verified that I can at least ssh to my test server. I have cwRsync installed on a windows server. I try the following command, but rsync doesn't look like a space in the path to the rsync executable.

rsync -rlH --rsync-path="c:/Program\ Files/cwRsync/bin/rsync.exe" . Administrator@cool03-stage:d:/rsync_test/.
'c:/Program\' is not recognized as an internal or external command,
operable program or batch file.
rsync: connection unexpectedly closed (0 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]

      

+3


source to share


1 answer


After adding C: \ Program Files \ cwRsync \ bin to my PATH on the windows server, I can run this:

rsync -rlH -e ssh . Administrator@cool03-stage:/cygdrive/d/rsync_test/.

      



Seems to work.

+1


source







All Articles