Hi,

I am trying create a mirror of a certain directory, but only copying
certain top-level dirs.
I am running this command:

rsync -vazn --exclude-from=exclude-file /opt machine2:/opt

exclude file looks like this (truncated):

+ "/AKmtools"
+ "/Acrobat4"
+ "/FSF*"
+ "/SUNWspro4.0"
+ "/netscape4.7"
+ "/perl5"
- "/*"

rsync still runs thru the entire directory tree when building the file
list.
I would expect it to descend only those directories included from the
file!
Is this correct behaviour, or I am specifying something incorrectly?

Thanks,

Moshe

--

-----------------------------------------------------------------------------
Moshe Linzer                     | On the Internet,
Unix Systems Manager             |
National Semiconductor, Israel   |        nobody knows you're a moron.
Phone: 972-9-970-2247            |
Fax: 972-9-970-2001              |                     - Network Magazine
Email: [EMAIL PROTECTED]            |
-----------------------------------------------------------------------------




Reply via email to