Windows rsync伺服器備份配置例項

2022-10-03 10:30:13 字數 1259 閱讀 3787

command:rsync -vzrtopg --progrewww.cppcns.comss --delete --exclude=程式設計客棧*.txt [email protected]::test /c程式設計客棧ygdrive/f/a

伺服器端rsyncd.conf例項:

伺服器端軟體**位址

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

re 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即可

客戶端軟體

客戶端使用備份命令:

rsync -vzrtopg --pro程式設計客棧gress --delete --exclude=*.tmp [email protected]::test /cygdrive/f/a

備份時應注意--delete選項,依目標而定

客戶端bat檔案例項:

複製** **如下:

@echo off

title fileserver mirror backup......

rsync -vzrtopg --progress --delete --exclude=*.tmp [email protected]::test /cygdrive/f/a

最後備份時可將客戶端命令寫成bat,批處理,再新增到系統的計畫任務執行。

本文標題: windows rsync伺服器備份配置例項

本文位址:

伺服器安裝Linux伺服器

新辦公需要搭建一台伺服器,之前也沒有怎麼搞過,不過有一些了解,於是和同事一起嘗試安裝一下伺服器。本人使用ultraiso燒錄u盤,系統檔案是centos 6.6 x86 64 bin 1.ios,使用urtraiso開啟iso檔案,然後如下圖 接著就可以寫入,u盤會被格式化的,注意備份,等待寫入就可...

mysql udp伺服器 UDP伺服器

傳輸層主要應用的協議模型有兩種,一種是tcp協議,另外一種則是udp協議。tcp協議在網路通訊中佔主導地位,絕大多數的網路通訊借助tcp協議完成資料傳輸。但udp也是網路通訊中不可或缺的重要通訊手段。相較於tcp而言,udp通訊的形式更像是發簡訊。不需要在資料傳輸之前建立 維護連線。只專心獲取資料就...

伺服器安裝apache伺服器

1.環境 centos7 2.鏈結伺服器 ssh username ip 3.安裝apache 4.設定apache在伺服器啟動時執行 5.在apache配置檔案中設定網域名稱 vi etc httpd conf httpd.conf,找到 servername 新增 網域名稱 80 儲存並退出。6...