rsync Remote Data synchronous backup of Linux

Source: Internet
Author: User
Tags lua rsync




The Rsync service is an efficient remote data backup tool with port number 873,

is a non-independent service under the Liunx. Managed by XINETD Super service, instead of listening 873port.

Strengths:

1. Rsync is able to use SSH and SSL remote control to connect to a remote host for backup. Dependent sshd Service

2, enables incremental backups, makes full backups on first connection, and synchronizes only changed data at a later time

3. Be able to use your own socket for synchronization. Ability to set password restrictions on the server.


Cons: No real-time synchronization, need to install LSYNCD tools to assist in real-time synchronization.


Configuration steps:

1, install the Rsync software on both client and server side respectively.

Yum Install rsync*-y

2, write the configuration file on the server rsyncd.conf this file does not exist, create the vim/etc/rsyncd.conf manually

3, create the password file on the server Vi/var/rsync.pass chmod 600/var/rsync must have 600 permissions assigned.

The content is in User:password format.

4. The rsyncd.conf profile on the server side sets the synchronization folder and permissions.

5. Client View Server sync folder rsync--list-only rsync://172.16.0.1

6, Client Sync server folder Rsync-av--delete rsync://172.16.0.1:/share

7, the client synchronizes access to the server

Rsync-av--delete--password-file=/var/myscret.pass Rsync://[email protected]/share/backup

8. The client creates password to store the file Myscrete.pass, which is the server access password, so that the direct interview is appropriate for the script.

the meaning of the--delete option means: Mirror the Sync server folder, including deleted file synchronization, or simply synchronize the added files



Two: Configure the LRSYNCD tool for real-time synchronization.

1. Download the lrsyncd.tar.gz package. Installation. Cp/usr/local/share/doc/lsyncd/lrsync.lua/usr/loca/etc

Edit the configuration file.

2, execute Lsyncd/usr/local/etc/lrsync.lua Ok








rsync Remote Data synchronous backup of Linux

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.