Windows rsync服務器備份配置實例
更新時間:2009年09月04日 00:56:18 作者:
Windows下使用rsync備份文件的配置方法,這是一個不錯的實例,經測試是沒問題的,大家可以參考下。
command:rsync -vzrtopg --progress --delete --exclude=*.txt rsync@192.168.1.9::test /cygdrive/f/a
服務器端rsyncd.conf實例:
服務器端軟件下載地址http://www.dhdzp.com/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.dhdzp.com/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,批處理,再添加到系統的計劃任務執(zhí)行。
服務器端rsyncd.conf實例:
服務器端軟件下載地址http://www.dhdzp.com/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.dhdzp.com/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,批處理,再添加到系統的計劃任務執(zhí)行。
相關文章
用Windows Storage Server 2008做iSCSI存儲服務器的圖文方法
本節(jié)將介紹WSS2008做iSCSI服務器及其在網絡中的應用,需要的朋友可以參考下2017-02-02
無法識別的屬性“type”+IIS沒有Asp.net配置選項的解決方法
前天在調試asp.net+sql server環(huán)境,點這里下載sql server 2005企業(yè)版。在測試一個用asp.net+mssql寫的留言本程序的時候,報錯,提示無法識別的屬性“type”2010-04-04
快速安裝并配置Windows Server 2022的網卡驅動
我們將介紹兩種常見的安裝方法:手動安裝和自動安裝,最后,我們將討論如何配置網卡驅動程序以確保網絡連接的穩(wěn)定性和性能,需要的朋友可以參考下2023-10-10
IIS PHP環(huán)境Temp文件夾的權限問題引起的網站故障
服務器非常慢,把WINDOWS2003重啟了,結果連不上服務器。結果悲劇的去了機房2013-02-02
IIS中使用的ISAPI_Rewrite Full版本做反向代理詳解
代理服務器來接受internet上的連接請求,然后將請求轉發(fā)給內部網絡上的服務器,并將從服務器上得到的結果返回給internet上請求連接的客戶端,此時代理服務器對外就表現為一個服務器。2010-04-04
IIS6 w3wp.exe進程占用cpu和內存過多的解決方法
今天有朋友問我他的服務器網站訪問很卡,內存及CPU占用不能及時釋放,從而導致服務器響應速度很慢,這里簡單介紹下,方便需要的朋友2013-12-12
win2003中的w3wp.exe進程大量占用cpu資源的各種問題解決方法
發(fā)生此問題是因為 Jet 數據庫引擎中存在缺陷。 Microsoft Windows Server 2003 上只會出現此問題。2010-06-06

