官網 rsync.samba.org 下載 cwRsync(客戶端)與 cwRsyncServer(伺服端)。
RsyncServer 並設為自動。rsyncd.conf:uid = 0 gid = 0 use chroot = false strict modes = false hosts allow = * log file = rsyncd.log [test] path = /cygdrive/d/temp read only = false transfer logging = yes
說明:/cygdrive/d/temp 對應 Windows D:\temp;[test] 為模組名稱,可定義多個。
bin 資料夾,執行:rsync -avr 192.168.1.100::test /cygdrive/d/temp
即可將伺服端 D:\temp 同步至本地 D:\temp;反向同步同理。