Rsync是一款不錯的文件免費同步軟件,可以鏡像保存整個目錄樹和文件系統,同時保持原來文件的權限、時間、軟硬鏈接。第一次同步時 rsync 會復制全部內容,下次只傳輸修改過的文件部分。傳輸數據過程中可以實行壓縮及解壓縮操作,減少帶寬流量。支持scp、ssh及直接socket方式連接,支持匿名傳輸。支持Linux,Window平臺。寫本文的時候,window版最新版為4.0.5版
官網:http://rsync.samba.org/
Linux版下載:http://rsync.samba.org/download.html
Windows版下載:https://www.itefix.no/i2/cwrsync-get 選(Free Edition 免費版)
客戶端:cwRsync 4.0.5 Installer
服務端:cwRsyncServer 4.0.5 Installer
現在官方開始了收費版本,建議從武林網之家下載免費版本
cwRsync win 服務器同步軟件 cwRsync_2.1.5_Installer.zip 服務器數據同步 服務器端 cwRsync_Server_2.1.5_Installer.zip 服務器文件同步 cwRsync_3.1.0_Installer.zip 服務器文件同步軟件 服務器端 cwRsyncServer_3.1.0_Installer.zip一、安裝配置 Rsync 服務端
Window版服務端:
1. 點擊服務端安裝程序進行安裝,安裝過程中提示輸入服務端程序以服務運行時的用戶名,密碼。可以自定義,也可以用默認的用戶名密碼設置。
2. 安裝完成之后,進入程序安裝目錄根目錄,打開配置文件(如:C:/Program Files/ICW/rsyncd.conf ),進入配置。
復制代碼 代碼如下:
use chroot = false
strict modes = false
lock file = rsyncd.lock
hosts allow = 192.168.1.21
max connections = 5
port = 28950
pid = 0
uid = 0
log file = /cygdrive/f/RsyncLog/rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:/work becomes /cygdrive/c/work
[data_backup]
path = /cygdrive/f/dataBackup
auth users = dbbackuper
secrets file = /cygdrive/e/Setting/Rsync/rsync_db.ps
read only = no
list = no
transfer logging = yes
武林網之家用的
復制代碼 代碼如下:
use chroot = false
strict modes = false
hosts allow = 222.186.55.55
log file = rsyncd.log
pid file = rsyncd.pid
# Module definitions
# Remember cygwin naming conventions : c:/work becomes /cygwin/c/work
#
[dddown]
path = /cygdrive/d/webroot/downjb51
read only = false
transfer logging = yes
auto user=wtjb51
secrets file=wtjb51.conf
[scjb51]
path = /cygdrive/d/webroot/scjb51
read only = false
transfer logging = yes
auto user=wtjb51
secrets file=wtjb51.conf
以上Windows目錄的寫法,應該按照POSIX風格來寫,默認配置文件的寫法cygwin貌似不工作,而要寫成cygdrive,如D:/data,要寫成/cygdrive/d/data。
以上配置只允許192.168.1.21訪問,這里按需修改。
strict modes = false 不驗證用戶密碼,
pid = 0,uid = 0指定匿名訪問。
auth users : 指訪問data_backup的用戶名
secrets file : data_backup用戶名對應的密碼文件。
3. 新建密碼文件:E:/Setting/Rsync/rsync_db.ps 。如:
root:root
新聞熱點
疑難解答