Sorry, but I don't use rsync in enough situations to remember how to
inovke the confusing rules for include/exclude.
The man page makes a valient effort at giving direction but infact it
is rather confusing still. And seems fairly complex.
Here is the current scene.
A server (redhat updates) has the directory structure:
rsync ftp.wtfo.com::rh-ftp/redhat-7.0/updates/:
drwxr-xr-x 4096 2000/11/27 08:00:54 .
drwxr-xr-x 4096 2001/02/08 12:51:40 SRPMS
drwxr-xr-x 4096 2001/02/08 12:59:35 alpha
drwxr-xr-x 4096 2001/01/12 08:08:11 alphaev6
drwxr-xr-x 4096 2001/02/08 13:32:27 i386
drwxr-xr-x 4096 2001/02/08 12:49:39 i586
drwxr-xr-x 4096 2001/02/08 12:55:43 i686
drwxr-xr-x 4096 2000/10/09 12:04:33 images
drwxr-xr-x 4096 2000/09/25 08:22:41 noarch
I want everthing except the files under `alpha' and `alphaev6'. I do
want those directories though.
That is, I want the local structure to mirror the one shown but with
no files under `alpha' or `alphaev6'
After looking thru the examples in man page it seems this command line
should do it:
rsync -nav --include "*/" --exclude "alpha/" \
--exclude "alphaev6/" ftp.wtfo.com::rh-ftp/redhat-7.0/updates/ .
But a dry run shows files under the two alphas also being downloaded.
Trying this then:
rsync -nav --include "*/" --exclude "alpha/*" \
--exclude "alphaev6/*" ftp.wtfo.com::rh-ftp/redhat-7.0/updates/ .
That way neither of the alpha directories is included.
Can't think of any more ways... and seems one of those should do what
I want.