无密码rsync服务搭建

1、安装 rsync : yum install -y rsync

2、配置 /etc/rsyncd.conf 

#cat /etc/rsyncd.conf
log file = /var/log/rsyncd.log
lock file = /var/run/rsync.lock
pid file = /var/run/rsyncd.pid
[send_test]
path = /data/
comment = send_test
uid = root
ignore errors
read only = no
list = no


3、启动服务

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


4、在其他机器执行,rsync 命令

/usr/bin/rsync -av 10.97.25.100::send_test/*

猜你喜欢

转载自blog.csdn.net/u013000139/article/details/50436653