Windows rsync服務器備份配置實例
更新時間:2009年09月04日 00:56:18 作者:
Windows下使用rsync備份文件的配置方法,這是一個不錯的實例,經(jīng)測試是沒問題的,大家可以參考下。
command:rsync -vzrtopg --progress --delete --exclude=*.txt rsync@192.168.1.9::test /cygdrive/f/a
服務器端rsyncd.conf實例:
服務器端軟件下載地址http://www.dbjr.com.cn/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
服務器端c:\rsync.pas實例:
rsync:12345
當然你也可以在當前目錄下新建一個rsync.pas但上面的secrets file = rsync.pas即可
客戶端軟件http://www.dbjr.com.cn/softs/16779.html
客戶端使用備份命令:
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
備份時應注意--delete選項,依目標而定
客戶端bat文件實例:
@echo off
title fileserver mirror backup......
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
最后備份時可將客戶端命令寫成bat,批處理,再添加到系統(tǒng)的計劃任務執(zhí)行。
服務器端rsyncd.conf實例:
服務器端軟件下載地址http://www.dbjr.com.cn/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
服務器端c:\rsync.pas實例:
rsync:12345
當然你也可以在當前目錄下新建一個rsync.pas但上面的secrets file = rsync.pas即可
客戶端軟件http://www.dbjr.com.cn/softs/16779.html
客戶端使用備份命令:
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
備份時應注意--delete選項,依目標而定
客戶端bat文件實例:
復制代碼 代碼如下:
@echo off
title fileserver mirror backup......
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
最后備份時可將客戶端命令寫成bat,批處理,再添加到系統(tǒng)的計劃任務執(zhí)行。
您可能感興趣的文章:
- 在Windows中配置Rsync同步文件的方法
- 用rsync實現(xiàn)windows與linux文件同步的方法
- windows下rsync的數(shù)據(jù)同步安裝配置方法
- cwrsync 四步實現(xiàn)windows備份
- windows下使用cwRsync定期備份網(wǎng)站(服務器文件同步)
- cwrsync實現(xiàn)從linux到windows的數(shù)據(jù)同步備份
- 使用cwRsync實現(xiàn)windows下服務器文件定時同步備份(附錯誤處理方法)
- 用cwrsync同步windows下數(shù)據(jù)的簡單配置方法
- windows2008系統(tǒng)中rsync計劃任務返回0x1問題處理
相關文章
用IIS建立的.net網(wǎng)站通過IP地址不能訪問解決方法
用iis建立一個.net的網(wǎng)站,在iis中綁定了服務器公網(wǎng)ip的80端口和127.0.0.1的80端口,結果用ip地址不能直接訪問2014-05-05iis中ASP運行環(huán)境配置圖解 IIS的安裝和基本設置
現(xiàn)在服務器上的asp運行環(huán)境基本上都是用win2003或win2008,當然也有winxp但iis版本是5.1的,大家可以根據(jù)需要選擇2012-04-04win2003 WScript.shell與Shell組件安全篇
Windows2003服務器安裝及設置教程 組件安全篇,刪除網(wǎng)頁木馬常用的組件,提高網(wǎng)站安全。2010-05-05win7 iis7.5 亂碼 和 解析不了ASP的ADO連接數(shù)據(jù)庫 的解決方法
win7 iis7.5 亂碼 和 解析不了ASP的ADO連接數(shù)據(jù)庫 的解決方法2009-06-06