新聞中心

創(chuàng)新互聯(lián)建站主營天門網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app軟件開發(fā),天門h5成都小程序開發(fā)搭建,天門網(wǎng)站營銷推廣歡迎天門等地區(qū)企業(yè)咨詢
服務(wù)器端rsyncd.conf實(shí)例:
服務(wù)器端軟件下載地址http://www.jb51.net/softs/16780.html
use chroot = no
#strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid
uid=administrator
gid=administrator
max connections=4
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/j/byq/pdf
ignore errors
read only = yes
auth users=rsync
transfer logging = yes
secrets file = /cygdrive/c/rsync.pas
服務(wù)器端c:\rsync.pas實(shí)例:
rsync:12345
當(dāng)然你也可以在當(dāng)前目錄下新建一個(gè)rsync.pas但上面的secrets file = rsync.pas即可
客戶端軟件http://www.jb51.net/softs/16779.html
客戶端使用備份命令:
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
備份時(shí)應(yīng)注意--delete選項(xiàng),依目標(biāo)而定
客戶端bat文件實(shí)例:
復(fù)制代碼 代碼如下:
@echo off
title fileserver mirror backup......
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
最后備份時(shí)可將客戶端命令寫成bat,批處理,再添加到系統(tǒng)的計(jì)劃任務(wù)執(zhí)行。
標(biāo)題名稱:Windowsrsync服務(wù)器備份配置實(shí)例
分享URL:http://www.dlmjj.cn/article/djipodp.html


咨詢
建站咨詢
