rsync不需要密码传输

rsync客户端不需要密码上传东西
服务器端
vi /etc/rsyncd.conf
list = yes
uid = root
gid = root
use chroot = no
#strict modes = false
host_allow = *
max connections =200
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
#secrets file=/etc/rsyncd.secrets

[ApacheLog]
path=/var/log/script
read only = false
transfer logging = yes

[apastat]
path=/var/ftp/history_config
read only = false
transfer logging = yes

/usr/bin/rsync --daemon
客户端直接执行:
rsync -avr --ignore-errors --force -r /scriptbak/ 192.168.1.17::ApacheLog


rsync -avr --ignore-errors --force -r /scriptbak/ 192.168.1.17::ScriptBackup

你可能感兴趣的:(rsync)