Ready to work:
Server A Source file server
Server B Data Backup Server
Server A's modified files are synchronized to server B in real time. Both servers A and B need to install rsync, and server A also needs to install inotify.
1. Install rsync and inotify
See if your server has these two software installed rpm -aq|grep rsync rpm -aq|grep inotify
We use the method of compiling and installing, enough to learn more
Download the compressed packages of rsync-3.0.9.tar.gz and inotify-tooles-3.14.tar.gz, I downloaded and put them in the /usr/local/src directory on my server, this is optional