[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hamm-only mirror



Joey,

Here's my current /etc/mirror/packages/debian.crosslink.net which gets bo and
hamm, but still has the hooks to exclude rex. You should be able to get what
you want by adding a line a la

	exclude_patt+|bo(-updates)?/|

which augments the set of exclusion patterns by all directories matching
	bo/
	bo-updates/

It is straightforward to test modifications. Just use the '-n' switch to use
mirror in 'as if' mode without actually retrieving/deleting files:

	$ mirror -n /etc/mirror/packages/debian.crosslink.net | tee /tmp/r1
	$ edit /etc/mirror/packages/debian.crosslink.net
	$ mirror -n /etc/mirror/packages/debian.crosslink.net | tee /tmp/r2
	$ diff /tmp/r1 /tmp/r2

So here it comes, I added some more comments where useful after #** so that you
don't have to edit the file to take them out.

------------------------------ snip -----------------------------------------

# Debian GNU/Linux "mirror" package, maintained by <edd@qed.econ.queensu.ca>

package=Debian
	#
	comment=Mirror of parts of debian.crosslink.net/pub/debian
	#
	# site and directory
	#
	site=debian.crosslink.net
	remote_dir=/pub/debian
	#
	# mirror it into /mirror/debian
	local_dir=/mirror/debian
	user=edd
	group=edd
	#
	# mail me the results
	mail_to=edd
	#
	# Now the nifty perl regular expressions. Note that (A|B|C) constructs
	# describes alternatives A, B and C. As . is a meta character that
	# matches any character, we have to escape with \ in pathnames
	# Here we exclude the released tree, all ms-dos symlinks, all source
	# packages, the private tree (but see below) and the bug tree
	# compress these
	compress_patt=\.*((C|c)ontents(-i386)?|Packages(-Master)?|ls-lR|md5sums|Maintainers|msdos-names)$
	#

#** That is pretty much my default: ignore alpha/sparc/m68k, odd directories
#** as iconnect-fixes, bugs archive, web archive etc

	exclude_patt=.*(-|_)m68k|ms-?dos(-i386)?/|source/|private/|debian-(bugs|lists)/|(binary|disks)-(alpha|sparc|m68k)/|i-connect-fixes/|ALPHA-TEST/|/core$|(I|i)ncoming/|WebPages/|\.contents\.new|\.in\.|\.new-?|\.mirrorinfo
	#

#** ignore files from experimental that are not i386.deb or all.deb
	exclude_patt+|experimental/.*(\.tar\.gz|\.diff\.gz|\.m68k\.deb|\.dsc)$

#** ignore rex fixes
	exclude_patt+|rex(-(fixed|updates))?/|

#** ignore non .deb files in bo-updates
	exclude_patt+|bo-updates/.*(\.changes|(\.orig\.tar|diff)\.gz|\.dsc)|

#** stuff I used to exclude when I was tight on diskspace

	# exclude_patt+|experimental/|disks-i386/
	# exclude_patt+|quake.*|timidity.*|bible-kjv.*|xbooks.*|abuse.*|scilab.*|networker.*|gnat_.*|xemacs.*|non-free/|contrib/
	#
	# don't delete what is mirrored by the other mirror package below
	# NB no / at end of directory names to save directories from deletion
	# also save private/project directory (which contains Incoming)
	#
	delete_excl=(local|debian-non-US)(/|$)
	#
	# careful about deletions
	max_delete_files=20%
	#
	# recurse_hard=true
	# timeout=600
------------------------------ snip -----------------------------------------

Cheers, Dirk

-- 
edd@debian.org  edd@rosebud.sps.queensu.ca  http://rosebud.sps.queensu.ca/~edd
PGP KeyID 1024/6D7F08DD     Boycott Internet Spam: http://www.vix.com/pub/spam



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: