RW wrote:
thanks - that was it - & natch the order of rsync includes/excludes is
mentioned in the cryptic man page. so, you need to:
exclude the more specific entry, and then finally include the required
one last as a generic entry:
- cyrus-sasl-*mysql*
- cyrus-sasl-*db4*
- cyrus-sasl-*postgres*
- cyrus-sasl-*ldap*
cyrus-sasl-*
achieves the required result.
yes it was a bit off topic but i was hoping to see how others did this.
a+
scorch
i am rsyncing -current packages & taking advantage of rsync's pattern
matching to avoid specifying the package versions, to make a local
repository for upgrades.
there are several packages that i _don't_ want to retrieve flavours for,
e.g. cyrus-sasl as an example. but i haven't been able to force just the
base package, without specifying identically the filename - which
defeats the purpose of what i was trying to achieve.
here's my current go, trimmed to show the specific problem:
$ cat snapshot.inc
# include file for rsync
cvsync-*
cyrus-sasl-*
- cyrus-sasl-*db*
- cyrus-sasl-*mysql*
- cyrus-sasl-*ldap*
db-4*
- *.tgz
$ rsync -thrivz --stats --del -n
rsync://rsync.de.openbsd.org/OpenBSD/snapshots/packages/i386
/var/tmp/packages/ --include-from=snapshot.inc
[...]
f+++++++ i386/cvsync-0.24.19.tgz
f+++++++ i386/cyrus-sasl-2.1.21p2-db4.tgz
f+++++++ i386/cyrus-sasl-2.1.21p2-ldap.tgz
f+++++++ i386/cyrus-sasl-2.1.21p2-mysql.tgz
f+++++++ i386/cyrus-sasl-2.1.21p2.tgz
f+++++++ i386/db-4.2.52p11.tgz
f+++++++ i386/index.txt
[...]
but I _don't_ want to retrieve all the{db4,ldap,mysql} flavors - just
the base one. can anybody help?
I don't have a chance to check (no rsync file or man page to check)
but:
Maybe in the rules you constructed first match wins. Once a match
happens no further rules are evaluated?
Otherwise you might go ask on an rsync list - I'd guess the folk there
wouldn't have to go look at the manpages.... It really is OT here.