The backup module for synchronizing Web: 192.168.1.10/WWW to rsync: 192.168.1.11
1 inotify applies to Real-Time Synchronization of a large number of small files using sersync for large files
2 download installation package wget http://cywl.jb51.net: 81/201111/tools/sersync_64bit_binary_stable_final.tar.gz
3 unzip the package for the GNU-Linux-x86
4 mkdir/usr/local/sersync
5 copy the content in the GNU-LINUX to/usr/local/sersync
Music GNU-Linux-x86/*/usr/local/sersync
6 CD/usr/local/sersync
In Vim confxml. XML
<Sersync>
<Localpath watch = "/www"> (Monitoring path)
<Remote IP = "192.168.1.11" name = "backup"/> (server peer IP, Module name)
<! -- <Remote IP = "192.168.8.39" name = "tongbu"/> -->
<! -- <Remote IP = "192.168.8.40" name = "tongbu"/> -->
</Localpath>
<Rsync>
<Commonparams Params = "-artuz"/>
<Auth start = "true" users = "renkun" passwordfile = "/etc/rsync. Password"/> (change to "true" username and password file)
<Userdefinedport start = "false" Port = "874" type = "codeph" text = "codeph"/> <! -- Port = 874 -->
<Timeout start = "false" time = "100"/> <! -- Timeout = 100 -->
<SSH start = "false"/>
</Rsync>
7. Start the service
/Usr/local/sersync/sersync2-d-r-o/usr/local/sersync/confxml. xml
This article is from the "itcain" blog, please be sure to keep this source http://521kun.blog.51cto.com/9397206/1775503
Rsync + sersync for real-time data synchronization to multiple servers