Rsync + sersync for real-time data synchronization to multiple servers

Source: Internet
Author: User
Tags rsync

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.