Centos 7 compile and install and configure rsync+inotify file real-time synchronization operation record

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324777688&siteId=291194637