国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務(wù)器 > Win服務(wù)器 > 正文

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

2024-09-10 00:05:52
字體:
供稿:網(wǎng)友
服務(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 #指定用戶登錄的密碼文件
motd file = rsyncd.motd #連接上rsync server時顯示的歡迎信息
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
四:開始–>運行–>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 指定用戶,一定要注意,指定的用戶必須要登陸才能進行同步服務(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 即可解決。
更具體的實現(xiàn)方法可以參考://m.survivalescaperooms.com/article/19663.htm
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 凤庆县| 城市| 罗田县| 介休市| 三原县| 玉树县| 马龙县| 永川市| 从化市| 灵璧县| 绿春县| 贺州市| 保靖县| 新宁县| 峡江县| 郁南县| 连州市| 绵竹市| 新建县| 平安县| 潢川县| 岳普湖县| 莱西市| 盘山县| 洛川县| 高阳县| 富顺县| 广南县| 宁陕县| 永登县| 色达县| 拉孜县| 钟祥市| 庆云县| 沁源县| 安龙县| 临漳县| 峡江县| 天台县| 洪江市| 麟游县|