wildcards and nested files
Steven Levine
steve53 at earthlink.net
Wed Jul 3 10:47:30 MDT 2013
In <CAN0CFw1Q-z4oBLTuYfTS-a37ZzLb8=CWofnpfSgQxt7q1Pnhiw at mail.gmail.com>,
on 07/03/13
at 02:55 AM, Grant <emailgrant at gmail.com> said:
Hi Grant,
>Is there a rule I can apply to figure out the proper order for includes
>and excludes?
Rules are evaluated in the order they are defined. The first rule with a
pattern that that matches is the rule that applies.
If you are a C programmer, think of it as the standard shortcut logical or
(i.e. ||). Evaluation stops at the pattern that evaluates to true.
If you really want to use rsync effectively, it will be worthwhile to
fully understand the "FILTER RULES" and "INCLUDE/EXCLUDE PATTERN RULES"
sections of the man page.
The answers to your questions are there, but there's enough content that
it can take a could of reads to get a feel for the developers way of
thinking.
Steven
--
----------------------------------------------------------------------
"Steven Levine" <steve53 at earthlink.net> eCS/Warp/DIY etc.
www.scoug.com www.ecomstation.com
----------------------------------------------------------------------
More information about the rsync
mailing list