3
我想使用rsync將git repo從linux機器鏡像到多個Windows服務器。到目前爲止,我在網上看到的是需要使用samba掛載Windows端的解決方案。理想情況下,我想避免這種情況,因爲它需要管理多個坐騎,更不用說安全問題。我已經證實我至少可以在我的測試服務器上使用ssh。我在Windows服務器上安裝了cwRsync。我嘗試了以下命令,但rsync似乎不喜歡rsync可執行文件路徑中的空間。rsync從Linux到無需安裝smb的windows
rsync -rlH --rsync-path="c:/Program\ Files/cwRsync/bin/rsync.exe" . [email protected]: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]