Linux daily Management-rsync common options detailed

Source: Internet
Author: User

-av Synchronizing Directories

Notation 123//tmp/333/

It means to synchronize the 123 files to the end of the/tmp/333//sync directory

Two directories.

/////////////////////////////////////////////////////////////////////////////////////////////////

Synchronizing Soft connections

1. Create a soft connection

2. View Soft Connection File details

3. Sync to/tmp/333/

4. View the soft connection file for the/tmp/333/. If it is a remote synchronization, there is no local soft connection to the file, it will become a red bad file. Want to synchronize the original file plus-L

1. synchronizing files to/tmp/333/

2. View/tmp/333/No soft connect file, become the source file.

3.diff compares two file differences. There is no difference in results.

//////////////////////////////////////////////////////////////////////////////////////////////////

--delete The original directory deletes a file synchronization so that the local directory also deletes this file.

1. By deleting one of the documents of the original target,

2. Sync directly, not sync to any data.

3. Add--delete Sync, display deleting 666.txt

4. View the local directory and the 666.txt file is deleted.

////////////////////////////////////////////////////////////////////////////////////////////////

Synchronization does not overwrite local modifications. -U

1. Modify local file 11.txt

2. Sync data, show sync 11.txt

3. View Local 11.txt

4. Modify the local file 11.txt again

5. Add-u to synchronize data.

6. View local files, is the status of the modification.

7. View the source files.

//////////////////////////////////////////////////////////////////////////////////////////////////

Specifies that a file or directory is not synchronized

1. Synchronization specifies that the 23 directory is not synchronized.

2. View the original directory

3. View the local directory

The same example.

A wildcard designation.

/////////////////////////////////////////////////////////////////////////////////////////////

Shows the progress of the synchronization. Useful for large files.

////////////////////////////////////////////////////////////////////////////////////////////////////

Compress sync, save bandwidth and save time.

[Email protected] ~]# Rsync-avlupz 123//tmp/333/

Linux daily Management-rsync common options detailed

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.