On Tue, 2008-11-11 at 22:02 -0200, Carlos Carvalho wrote:
> I need to exclude a directory at the root of the sync tree. It's big,
> so it's important that both the source and destination don't waste
> time stating their contents. Should I use
> 
>   --exclude /dir
> or
>   --exclude /dir/***
> 
> or something else?

I would recommend the second option as the surest, though I would quote
the asterisks from the shell just to be safe.  The first will also work
if you're recursing from the root of the tree because it short-circuits
rsync's recursion.

Matt

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to