Unison bidirectional Synchronization

Source: Internet
Author: User

Two hosts, one local host IP Address: 192.168.200.36 and one remote host IP Address: 192.168.200.28

Install the unison-full software package CD on the 36 and 28 hosts to the unison-full software package directory.

Rpm-IVH unison-2.40.63-1.el6.rfx.86_64 \ (11). rpm

Generate the ssh-keygen-d key certificate on host 36 until the key is generated

Send the public key to the remote client ssh-copy-ID-I/root/. Ssh/id_dsa.pub. [email protected]

SSH [email protected] can be accessed without a password

Create a directory named mkdir. unison in the root directory.

Edit Vim. unison/Default. PRF as follows:

Root =/OPT

Root = SSH: // [email protected], 200.28 // opt target path

Bath = ture forced Synchronization

Sshargs =-C keep Compression

Fastcheck = true

Repeat = 1

Owner = true

Group = true

Perms =-1

Logfile =/root/. unison/unison_test.log


Start nohup unison default. PRF &

In this way, dual synchronization is implemented under the/OPT directory on both hosts.

This article is from the "Arctic Linux" blog. For more information, contact the author!

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.