日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
cwrsync四步實(shí)現(xiàn)windows備份
服務(wù)器端:

http://rsync.samba.org/ 服務(wù)器端(cwRsyncServer)。

安裝目錄: E:\cwRsyncServer

端口: 52326

ip: 219.152.120.82

創(chuàng)新互聯(lián)公司主要從事成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)澄海,10余年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):13518219792

一:修改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 #指定用戶登錄的密碼文件

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)容為用戶名:密碼

如: tly:fjs249slke

客戶端:

http://rsync.samba.org/ 下載cwRsync客戶端(cwRsync)

安裝目錄: E:\cwRsync

三:在E:\cwRsyncServer目錄下新建密碼文件 rsyncd.secrets 內(nèi)容為密碼

如:fjs249slke

四:開始–>運(yùn)行–>cmd 輸入以下命令即可同步服務(wù)器端t_task模塊到客戶端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ù)器是否有開服務(wù)端口,命令行輸入( netstat -a ) 可查看服務(wù)器開的端口。就是上面的52326端口。2.客戶端命令行輸入( telnet 服務(wù)端ip 服務(wù)端口 ) 能否連接服務(wù)器端。3.檢查配置文件是否跟上面一樣。

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

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

錯誤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ù)器端沒有開啟 rsync 服務(wù)。開啟服務(wù)。

錯誤2:@ERROR: chdir failed

rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec

eiver=3.0.2]

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

錯誤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.jb51.net/article/19663.htm


本文題目:cwrsync四步實(shí)現(xiàn)windows備份
URL分享:http://m.5511xx.com/article/dhhdjci.html