Linux下Rsync+Inotify-tools实现数据实时同步

服务器环境:Linux CentOS 7 服务器A:192.168.0.101(客户端) 服务器B:192.168.0.100(服务端) 在服务器A和服务器B上通过yum命令安装软件包: [root@192 ~]# yum -y install rsync inotify-tools 一、在服务器A(客户端)的配置rsync 配置conf文件: [root@192 ~]# vim /etc/rsyncd.conf transfer logging = yes pid file = /var/ru…