歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

try rsync service

try rsync service   源鏡像IP:IP0   root配置(如下)並執行:/usr/bin/rsync --daemon --config=/etc/rsyncd.conf   01 gid = users 02 read only = true 03 use chroot = false 04 transfer logging = true 05 log format = %h %o %f %l %b 06 log file = /var/log/rsyncd.log 07 slp refresh = 300 08   09 [SOSOLOG_DEPLOY] 10         path = /data/sosolog/deploy_path/ 11         comment = sosolog's deploy path 12         auth users = soslog 13         secrets file = /etc/rsyncd.soslog.secrets 【chmod 600 it, 內容 <soslog:logsos>】 14         host allow = 真實IP1,真實IP2,   允許訪問鏡像側(如真實IP1,真實IP2):   rsync -avz soslog@$IP0::$source_path/目錄或文件 ./ --password-file=./soslog_rsync.pwd --exclude "*.log" --exclude "*.tgz" --exclude "*.tar" --exclude "*.zip" --exclude "tmplogs/*"   ./soslog_rsync.pwd 內容:logsos
 
Copyright © Linux教程網 All Rights Reserved