Date: Wed, 05 Mar 1997 22:25:09 +0000 From: Lee McLoughlin <lmjm@doc.ic.ac.uk> To: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> Cc: freebsd-hubs@freebsd.org Subject: Re: mirror exclude patterns Message-ID: <331DF2C5.C6DC9D8@doc.ic.ac.uk> References: <199703052121.WAA01896@gilberto.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Christoph Kukulies wrote: > > I have a pattern in my mirror.defaults file that should exclude > des and secure directories to be fetched from ftp.freebsd.org > (for crypto export reasons). What happens is that also > files containing the pattern des (like tdesk) aand sup-secure > are excluded from the fetch which isn't what I want. > > exclude_patt=des|eBones|secure|ls-lR.gz > > is the line I currently have. Try something more like: exclude_patt=(^|/)(des|eBones|secure|ls-lR.gz) The (^|/) will match a start of filename or a '/' and the $ will match end of filename. So the exclude_patt will now match: des whatever/dir/eBones But not: tdesk somewhere/sup-secure/filename -- Lee McLoughlin. Phone: +44 171 594 8388 IC-Parc, Imperial College, Fax: +44 171 594 8432 South Kensington, London. SW7 2BZ. UK. Email: L.McLoughlin@doc.ic.ac.uk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?331DF2C5.C6DC9D8>