Rsync simple application

Source: Internet
Author: User

As needed, the backup should be set up as follows:

1. 1. Install rsync

Run the command: yum-y install rsync to install the server.

 

2. Second: Configure rsync

The main three configuration files need to be filled

A. touch/etc/rsyncd. conf)

Vi/etc/rsyncd. conf

   # See rsync(1) and rsyncd.conf(5   pid file = port = 873 address = 192.168.1.2    #uid = #gid =  uid = gid =  use chroot = read only =   hosts allow=192.168.1.101   #hosts deny=  max connections = 5  motd file =   #log file = log file =  #This will log every file transferred - up to 85,000+ per user, #transfer logging =  log format = syslog facility = timeout = 300      path = list=  auth users = secrets file = comment =      path = list=  auth users = secrets file = comment = This is named

Note IP address, user ID, user group ID,

B. touch/etc/rsyncd. pa create Password File Format: User name: User Password

Vi/etc/rsyncd. pa note that the permission for this file must be 600

Chmod 600/etc/rsyncd. pa

 test:test

 

C. touch/etc/rsyncd. motd

Vi/etc/rsyncd. motd

This file can be written at will.

              2002------2013 ++++++++++++++++++++++++++++++++++++++++++++++

 

Now the server configuration has been completed.

 

Third: client operations

Rsync-avzP test@192.168.1.2: named namedbck

Directory backup can be implemented. You can check the specific parameters online.

 

Eight ring DNS, http://www.8jdns.com

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.