接收端配置:
1.安装rsync
yum -y install rsync
2.配置同步模块
1. 编辑同步配置文件
vi /etc/rsyncd.conf
2. 同步模块配置参数
# any name you like [backup] # destination directory for copy path = /usr/blues # hosts you allow to access hosts allow = 192.168.16.143 hosts deny = * list = true uid = root gid = root read only = false
3. 创建同步文件夹
mkdir /usr/blues
4. 启动同步服务
systemctl start rsyncd
5. 设置开机启动
systemctl enable rsyncd
******
时间: 2024-11-06 09:19:48