Syntax for using rsync options --exclude and --delete!

Max Bowsher maxb at ukf.net
Wed Nov 20 20:33:01 EST 2002


Leslie_Branch at hgsi.com <Leslie_Branch at hgsi.com> wrote:

> I was wondering if anyone has a viable syntax solution for using
> rsync with the --exclude and --delete option.
...
> Current Syntax:
> rsync -vaox --exclude ".snapshot" * [destination]
> NOTE: Current directory is source.

I believe changing * to . will solve your problem.

I think delete disables itself when rsync is given more than 1 source.
(i.e. * expands to multiple objects, whereas . is a single source)

> Btw - I am using rsync version 2.3.1
That's ancient - Upgrade!

Max.




More information about the rsync mailing list