环境:centos 7
rsync安装
修改/etc/xinetd.d/rsync中的 disable = no增加/etc/rsyncd.conf,内容如下:
uid = root
gid = root
port = 873
hosts = 10.32.1.30,10.32.1.30
[upinst]
path = /upinst
read only = yes
auth users = rsync
secrets file = /etc/rsync.passwd
增加/etc/rsync.passwd,内容如下:
rsync:rsync001 #一行一个用户,格式:”用户名:密码“
启动:rsync --daemon
同步指令:rsync -avz rsync@10.32.1.27::upinst .
rsync -avz 用户名@host::path .