快速配置rsync用于无密码接收文件

1.安装好rsync后,增加文件 /etc/rsyncd.conf

uid = root
gid = root
use chroot = no
max connections = 100
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.cock
log file = /var/log/rsync.log
list = no
strict modes = no
#secrets file = /etc/rsyncd.secrets


[rdata]
path = /data2/rsync_data/
read only = no


2.启动

rsync --daemon --config=/etc/rsyncd.conf


3.测试

rsync -av test.log 10.210.210.121::rdata/xw/


你可能感兴趣的:(File,测试,Path)