復(fù)制代碼 代碼如下:
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log #LOG
pid file = rsyncd.pid
secrets file = password # 這里指定了用戶名密碼文件在其安裝目錄里,名字叫 password,其內(nèi)容是txt編輯為 4899:4899 前面是用戶名,后面是密碼
# Module definitions
# Remember cygwin naming conventions : c:/work becomes /cygwin/c/work
#
[webbackup]
path = /cygdrive/d/web/ #注意格式,這說明是D盤WEB目錄下的4899目錄,這是web目錄
read only = true #只讀
list = no
auth users = 4899 #指定用戶名
transfer logging = no #是否記錄詳細(xì)的傳輸情況
[data]
path = /cygdrive/d/web/sql_back #這是數(shù)據(jù)庫(kù)備分目錄
read only = true
list = no
auth users = 4899
transfer logging = no
復(fù)制代碼 代碼如下:
rsync -vzrtopg --progress --delete --password-file=/cygdrive/e/password2 [email protected]::data /cygdrive/e/web_77/sql_back
新聞熱點(diǎn)
疑難解答
圖片精選