rsync Data Backup Synchronization daemon (socket) mode

Source: Internet
Author: User
Tags rsync

Lab Environment:
Backup server:192.168.160.101
Node1 server:192.168.160.245

Experimental purpose: Implement NODE1 scheduled incremental backups to backup server

Add two domain name resolution via local Hosts file (two all to do) synchronize data via domain name more intuitive!
Backup server:

Ping test:

Node1 Server:

Ping test:

Install Rsync: (both server and client are installed)
Yum Install-y rsync

Writing the rsyncd.conf configuration file

To create a new shared backup file:

To add rsync users:

Add rsync to the System daemon: (Rsync is using port 873)

The/backup file belongs to the group, the main change to rsync user-R means that all files and directories are inherited from the group, the master

Create a virtual user and password file and set the file permissions to 600 (for security)

Write the rsync process to the startup key:

Firewall and SELinux release related services:

Node1 Server:
Create password file password to be consistent with backup server side! and set the permission to 600

The test is pushed from the Node1 to backup:
To create the Node1 directory on Node1:

and create five files in the Node1 file:

Push the Node1 directory to the backup directory on backup server:

Synchronization succeeded, test incremental sync
Continue to create a file on Node1

Push again

Incremental synchronization is successful, view the backup backups directory on backup server

Adding the--passwordp-file=/etc/rsync.password parameter allows you to synchronize data without entering a password:

Automated Backup:
Incremental backup daily 0 o'clock/node1/directory

rsync Data Backup Synchronization daemon (socket) mode

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.