欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

cwrsync 四步實(shí)現(xiàn)windows備份

 更新時(shí)間:2008年09月17日 13:25:03   作者:  
對(duì)于rsync數(shù)據(jù)同步經(jīng)常會(huì)遇到一些問(wèn)題,下面的對(duì)于這些問(wèn)題的解決,一定要逐個(gè)測(cè)試
服務(wù)器端:
http://rsync.samba.org/ 服務(wù)器端(cwRsyncServer)。
安裝目錄: E:\cwRsyncServer
端口: 52326
ip: 219.152.120.82

一:修改cwRsyncServer配置文件 E:\cwRsyncServer\rsyncd.conf
#########
port = 52326
use chroot = false
strict modes = false
read only = yes
list = no
hosts allow = *
max connections = 10
secrets file = rsyncd.secrets #指定用戶(hù)登錄的密碼文件
motd file = rsyncd.motd #連接上rsync server時(shí)顯示的歡迎信息
log file = rsyncd.log
pid file = rsyncd.pid
transfer logging = yes

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes

[t_task]
path = /cygdrive/c/work
read only = false
transfer logging = yes
#################################
二:在E:\cwRsyncServer目錄下新建密碼文件 rsyncd.secrets 內(nèi)容為用戶(hù)名:密碼
如: tly:fjs249slke
客戶(hù)端:
http://rsync.samba.org/ 下載cwRsync客戶(hù)端(cwRsync)
安裝目錄: E:\cwRsync
三:在E:\cwRsyncServer目錄下新建密碼文件 rsyncd.secrets 內(nèi)容為密碼
如:fjs249slke
四:開(kāi)始–>運(yùn)行–>cmd 輸入以下命令即可同步服務(wù)器端t_task模塊到客戶(hù)端e:/y目錄下。
E:\cwRsync\bin\rsync.exe -vazu –exclude article/ –progress –delete –

password-file=E:\cwRsync\rsyncd.secrets

rsync://odinxu@219.152.120.82:52326/t_task /cygdrive/e/y

照做可同步服務(wù)了,如果不行,1.檢查服務(wù)器是否有開(kāi)服務(wù)端口,命令行輸入( netstat -a ) 可查看服務(wù)器開(kāi)的端口。就是上面的52326端口。2.客戶(hù)端命令行輸入( telnet 服務(wù)端ip 服務(wù)端口 ) 能否連接服務(wù)器端。3.檢查配置文件是否跟上面一樣。

注:以上為匿名連接入服務(wù)器端,一般會(huì)在模塊里添加 auth user= odinxu 指定用戶(hù),一定要注意,指定的用戶(hù)必須要登陸才能進(jìn)行同步服務(wù)。 我在這里掐了很久,模塊里指定了用戶(hù),用戶(hù)又沒(méi)有登陸,導(dǎo)致出錯(cuò)。

新手常出現(xiàn)的錯(cuò)誤:

錯(cuò)誤1: rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receive
r=3.0.2]

解決:很大可能是服務(wù)器端沒(méi)有開(kāi)啟 rsync 服務(wù)。開(kāi)啟服務(wù)。

錯(cuò)誤2:@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]

解決:服務(wù)器端同步目錄沒(méi)有權(quán)限,cwrsync默認(rèn)用戶(hù)是Svcwrsync。為同步目錄添加用戶(hù)Svcwrsync權(quán)限。

錯(cuò)誤3:@ERROR: failed to open lock file
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]

解決:配置文件 rsync.conf中添加 lock file = rsyncd.lock 即可解決。
更具體的實(shí)現(xiàn)方法可以參考:http://www.dbjr.com.cn/article/19663.htm

相關(guān)文章

最新評(píng)論