Harry Putnam wrote:
> I want only binary-all/ binary-i386/ and disks-i386
>
> My command line looks like:
> rsync -navvz --exclude-from=rsync_woody_exclude
> rsync://ftp.debian.org/debian/dists/woody/ .
>
> I'm trying for a dryrun to see how my exclude rules work
>
> cat rsync_woody_exclude
> binary-alpha/*
> binary-arm/*
> binary-m68k/*
> binary-powerpc/*
> binary-spark/*
> disks-alpha/*
> disks-m68k/*
> disks-powerpc/*
> disks-sparc/*
> source/*
>
> But still every damn file on the server turns up in the output,
> including every thing under the ones supposedly excluded.
>
> Also trying with a leading forward slash -- same results.
>
> The man page says, well .... point blank really, that this
will work.
>
> o if the pattern ends with a / then it will only
> match a directory, not a file, link or device.
And it does ... Harry you have a trailing * not a trailing /
perhaps you should be using the following (as suggested by
Scott Sharpe's example) :)
cat rsync_woody_exclude
binary-alpha/
binary-arm/
binary-m68k/
binary-powerpc/
binary-spark/
disks-alpha/
disks-m68k/
disks-powerpc/
disks-sparc/
source/
cheers,
Greg