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
 

相关内容

    暂无相关文章