Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 架設 rsync 同步伺服器:cwRsync Server 與 Client 安裝設定全步驟

編輯:Windows 7 系統介紹

軟體取得

官網 rsync.samba.org 下載 cwRsync(客戶端)與 cwRsyncServer(伺服端)。

伺服端安裝與設定 (假設 IP 192.168.1.100)

  1. 預設選項安裝 → 服務管理啟動 RsyncServer 並設為自動。
  2. 編輯 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] 為模組名稱,可定義多個。

客戶端同步 (假設 IP 192.168.1.101)

  1. 安裝 cwRsync 客戶端。
  2. 命令列進入安裝目錄 bin 資料夾,執行:
rsync -avr 192.168.1.100::test /cygdrive/d/temp

即可將伺服端 D:\temp 同步至本地 D:\temp;反向同步同理。

Copyright © Windows教程網 All Rights Reserved