Rsync Command Format

Source: Internet
Author: User
Tags rsync
The Command Format of rsync can be:

1. Rsync [Option]... SRC [SRC]... [user @] HOST: dest
2. Rsync [Option]... [user @] HOST: SRC dest
3. Rsync [Option]... SRC [SRC]... dest
4. Rsync [Option]... [user @] HOST: SRC [DEST]
5. Rsync [Option]... SRC [SRC]... [user @] HOST: dest
6. Rsync [Option]... rsync: // [user @] host [: Port]/src [DEST]

Rsync has six different working modes:

1. Copy the local file. This mode is enabled when the SRC and des paths do not contain a single colon ":" separator.

2. Use a remote shellProgram(Such as RSH and SSH) to copy contents of local machines to remote machines. This mode is enabled when the DST path address contains a single colon ":" separator.

3. Use a remote shell program (such as RSH and SSH) to copy the contents of the remote machine to the local machine. This mode is enabled when the SRC address path contains a single colon ":" separator.

4. Copy files from the remote rsync server to the local machine. This mode is enabled when the SRC path information contains the ":" separator.

5. Copy files from the local machine to the remote rsync server. This mode is enabled when the DST path information contains the ":" separator.

6. List of remote machine files. This is similar to rsync transmission, but you only need to omit the local machine information in the command.

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.