try rsync service
root配置(如下)并执行:/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
gid = users
read only = true
use chroot = false
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
[SOSOLOG_DEPLOY]
path = /data/sosolog/deploy_path/
comment = sosolog's deploy path
auth users = soslog
secrets file = /etc/rsyncd.soslog.secrets 【chmod 600 it, 内容 <soslog:logsos>】
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
查看更多关于try rsync service - Linux操作系统:Ubuntu_Centos_Debian的详细内容...