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

Re: Follow symlinks



On Tue, Jul 06, 1999 at 07:31:26PM -0400, Gonzalo Diethelm wrote:
> Hello,
> 
> I saw on the Web a discussion about forcing mirror
> to follow the symlinks and actually download the
> files they point to (especially useful if you want
> to, for example, mirror debian/unstable). Alas, I
> can't get it to work. My package file looks like this:

[snip]

I wrestled with this for a while before settling on a simple
method.  What I ended up with is this:

#### /etc/mirror/packages/potato ####

package=PotatoMain
	#
	comment=Debian Potato Main
	#	
	site=ftp.mi.us.debian.org
	remote_dir=/debian/dists/potato/main/binary-i386
	remote_user=anonymous
	remote_password=ironfoot@popaccount.com
	flags_recursive=-lRatL
	local_dir=/usr/local/ftp/pub/debian/dists/potato/main/binary-i386
	mail_to=root
	disconnect=true
	#
	compress_patt=Packages(-Master)?
	#
	max_delete_files=100%
	do_deletes=true

package=PotatoContrib
	#
	comment=Debian Potato Contrib
	#	
	site=ftp.mi.us.debian.org
	remote_dir=/debian/dists/potato/contrib/binary-i386
	remote_user=anonymous
	remote_password=ironfoot@popaccount.com
	flags_recursive=-lRatL
	local_dir=/usr/local/ftp/pub/debian/dists/potato/contrib/binary-i386
	mail_to=root
	disconnect=true
	#
	compress_patt=Packages(-Master)?
	#
	max_delete_files=100%
	do_deletes=true

package=PotatoNonFree
	#
	comment=Debian Potato Non-Free
	#	
	site=ftp.mi.us.debian.org
	remote_dir=/debian/dists/potato/non-free/binary-i386
	remote_user=anonymous
	remote_password=ironfoot@popaccount.com
	flags_recursive=-lRatL
	local_dir=/usr/local/ftp/pub/debian/dists/potato/non-free/binary-i386
	mail_to=root
	disconnect=true
	#
	compress_patt=Packages(-Master)?
	#
	max_delete_files=100%
	do_deletes=true


This in effect makes 3 runs at the binary-i386 level and results in 
all symlinks getting flattened right out.  Also eliminates the need
for most (all?) of the exclude_patt specs.

It works fine, but I don't know what kind of additional load I'm 
causing on the mirror site by not using the ls-lR.gz file.


Mike

-- 
Michael Merten <ironfoot@popaccount.com>
        --> NRA Life Member (http://www.nra.org)
        --> Debian GNU/Linux Fan (http://www.debian.org)
        --> CenLA-LUG Member (http://www.angelfire.com/la2/cenlalug)
--  
In Blythe, California, a city ordinance declares that a person must
own at least two cows before he can wear cowboy boots in public.


Reply to: