Exclude multiple files when Rsync synchronizes

Source: Internet
Author: User
Tags rsync

Synchronization commands

"compile""session_cache""web" /cygdrive/c/www/test/trunk/ username@IP:/home/test/

This is to say that the way to exclude multiple files/folders when synchronizing is:

--exclude "文件夹名字(1.唯一的时候,可以直接用文件/文件夹名 2.用绝对路径)"以下示例,排除3个文件夹:--exclude .svn --exclude "compile" --exclude "session_cache"

Rsync Common parameters:

--delete 删除目标文件比源文件多余的文件--exclude 排除文件(文件不会被同步)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Exclude multiple files when Rsync synchronizes

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.