Cross-server/client BACKUP command: rsync usage

Source: Internet
Author: User
Tags rsync usage

Cross-server/client BACKUP command: rsync usage

Recently, we often need to deploy environments on a new server. Many things can be backed up directly from other servers without re-downloading and installing them.

The rsync command is used:

First, download rsync and install it on the "source server". take part in Baidu encyclopedia for the specific process.

Then configure the rsync. conf file in the "source server", which is usually in/etc/rsyncd. conf.

Add the following statement to the file:

 

[Liujian] path =/data1/liujian/uid = rootgid = rootread only = nohosts allow = 127.0.0.1/16 *****/255.255.255.0

Save and run the command: usr/bin/rsync -- daemon -- config =/etc/rsyncd. conf

 

Then run the following command on the target server: rsync-avzP root @**. **. **. **: liujian/data1/liujian/test/(where ****** is the "source server" IP address)

If there is no problem, the progress bar will be displayed.

Related Article

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.