CentOS 7.2 部署Rsync + Lsyncd服务实现文件实时同步/备份 (一)

接收端配置:


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

 

 

******

posted @ 2017-03-09 11:32 博尔特希 阅读(...) 评论(...) 编辑 收藏