How Rsync works

Source: Internet
Author: User
Tags rsync

how Rsync works (from the web)

1) Copy Local files;

This mode of operation is enabled when the SRC and DES path information does not contain the colon ":" delimiter:

[Email protected]/]# rsync-avsh/home/coremail//cmbak/

2) Use a remote shell program (such as rsh,ssh) to copy the contents of the local machine to the remote machine, when DST path address includes colon ":" The mode is started when the delimiter is separated;

[Email protected]/]# rsync-avsh/home/coremail/192.168.11.12:/home/coremail/

3) Use a remote shell program (such as rsh,ssh) to copy the contents of the remote machine to the local machine, SRC The address path includes a colon ":" The mode is started when the delimiter is separated;

[Email protected]/]# rsync-avsh 192.168.11.11:/home/coremail//home/coremail/

4) Copy files from the remote rsync Server to the local machine. This mode is started when the SRC path information contains the "::" delimiter.

such as:rsync-av [email protected]::www/databack

5) copy files from the local machine to the remote rsync server. This mode is started when the DST path information contains the "::" delimiter.

such as:rsync-av/databack [email protected]::www

6) The list of files for the remote machine is listed. This is similar to the rsync transfer, but only if the local machine information is omitted from the command.

such as:rsync-v rsync://192.168.11.11/data

How Rsync works

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.