Linux Advanced tips: rsync sync (ii)

Source: Internet
Author: User
Tags rsync

1. Configure two node synchronization

The previous post has shown how to synchronize a host. This time we'll add a host to synchronize. There is no duality in the method.
1. First display our console:


Last time the content of 192.168.2.103 synchronization 192.168.2.102. This lets 192.168.2.104 nodes synchronize the contents of 192.168.2.102.


Install the rsync and xinetd services on 192.168.2.104 first:




Start the Rsync service in the xinetd configuration file:




Change the rsync configuration file:




Start the XINETD service (in order to start the rsync service):


Then we switch to the main service console and copy a configuration file:


Change the contents of the configuration file to match the second node:


Then we create the Sync folder and go to the folder and create 5 files for testing:


We do a general synchronization on the main control node:


Then we saw the five files synced over the 192.168.2.104:


And the content of the HTTPD service published by 192.168.2.103 is also 192.168.2.102 in sync:


2.Summary

At this point we rsync+sersync the explanation of the first, the use of rsync is also very broad, to be flexible to use. For high-volume server operation and maintenance will certainly achieve a multiplier effect.








Linux Advanced tips: rsync sync (ii)

Related Article

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.