萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 電腦基礎知識 >  >> 電腦基本常識

Windows 安裝配置 cwRsync Server 實現 rsync 同步備份完整指南

在 Windows 上部署 rsync 伺服器端,使用 cwRsyncServer 整合包最省力:

1. 安裝伺服器端

  • 執行 cwRsyncServer_4.1.0_Installer.exe,一路「下一步」。
  • 安裝過程會建立專用系統帳戶 SvcCWRSYNC(可自訂帳號密碼)。
  • 安裝完成後,rsync 以 Windows 服務方式運行(服務名 RsyncServer),建議將啟動類型改為「自動」。
安裝包內容
安裝精靈
建立服務帳號
服務管理員中啟動服務

2. 設定 rsyncd.conf 核心配置檔

安裝目錄下的 rsyncd.conf(或開始選單捷徑)為主設定檔,關鍵參數範例:

use chroot = false
strict modes = false
hosts allow = 192.168.1.21
max connections = 5
port = 873
uid = 0
gid = 0
log file = /cygdrive/f/RsyncLog/rsyncd.log

[cr173com]
path = /cygdrive/d/cr173/
secrets file = /cygdrive/e/Setting/Rsync/rsync_db.PS
read only = no
list = no
transfer logging = yes
rsyncd.conf 位置

關鍵參數說明

  • hosts allow:允許連線的客戶端 IP(單一 IP、網段 CIDR、多個用空格隔開,* 表全部)。
  • secrets file:密碼檔格式 username:password,配合 auth users 使用。
  • path:Cygwin 路徑格式(/cygdrive/d/... 對應 D:\...)。
  • read only = no 允許上傳;list = no 隱藏模組不列在清單。

3. 客戶端使用(綠色版 cwRsync)

解壓綠色包,使用 rsync -avz --password-file=密碼檔 來源/ user@server::模組名 同步。

完成上述設定,即擁有跨平台、增量、加密傳輸的企業級備份方案。

copyright © 萬盛學電腦網 all rights reserved