Rsync builds a Disaster Recovery Backup System

Source: Internet
Author: User
Tags inotify

Assume that there are two linux systems A as the server and B as the backup machine. You need to install rsync software on Ah AB to run the rsync daemon on system, system B regularly backs up data specified by system A through the crontab daemon to implement data backup.

Server Configuration
1. Run the command to check whether rsync is installed.


2. Modify the rsync configuration file (rsyncd. conf)
The rsync configuration file is/etc/rsyncd. conf. By default, this file does not exist. Just create one manually. The rsyncd. conf file contains one or more modules, including global parameters and module parameters. The definition of a module starts with the module name in brackets.

Uidgid the ID that the daemon should have when the module transfers files
Maximum number of concurrent connections of the maxconnections Module
Strictmodes specifies whether to check the permission of the password file. If it is set to yes, the password file must be root. Therefore, you must modify the permission of the created password file. Otherwise, an error is reported.
[Test] test is the module name.
Path specifies the data to be backed up
Ignoreerrors ignores unrelated I/O errors
List whether the module is listed when a customer requests that the module list can be used
Account used for vauthusers connection Verification
Secretsfile Password File Format Username: Password

For more details, please continue to read the highlights on the next page:

Rsync details: click here
Rsync: click here

Recommended reading:

Monitor host files and directories using inotifywait

Using inotify + rsync for Linux File batch update

Inotify-tools + rsync real-time file synchronization installation and configuration

Complete rsync synchronization Configuration

  • 1
  • 2
  • Next Page

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.