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

Re: How to partial mirror with pools?



On Wed 28 Mar, Rahmat M. Samik-Ibrahim wrote:
> "J.A. Bezemer" wrote:

> > http://lists.debian.org/debian-devel-0101/msg00020.html
> > http://lists.debian.org/debian-devel-0101/msg02742.html
> > http://lists.debian.org/debian-devel-0102/msg00278.html

> thanks! I must have screwed the search options :-(.
> anyway, I will keep the links at

> http://groups.yahoo.com/group/debid/links/Scripts_000985774503/

thanx that's a useful resouce. I now have a pile of scripts that do varying
flavours of not-quite-what-I-want :-). Might it be a good idea to put this
somewhere more 'official' within Debian so people looking for mirror scripts
might easily find them?

I like the rsync approach rather than ftp as I have a thin pipe so Goswin
Brederlow's rsyncmirror script looked ideal. However it didn't seem to work
as intended when I tried it.

To remind you - my problem is that potato-source has a lot of links to files
in /pool and I need these to produce full potato source CDs but I don't want
to download the whole of pool.

rsyncmirror never downloaded the missing files from the pool - and
after a bit of poking I foundout why. 

It creates a specific rsync include filelist to get the updates you need. It
does this by looking through the packages.gz/sources.gz files to generate a
list of all the ones with /pool in their path. Well, for current potato there
aren't any of those - only the link's (conventional) position is recorded.
Did packages used to have their status as being in the pool listed in the the
packages files? I assume so or this script should never have worked as
intended.

Anyway, I'm fixing it so that it looks for broken links instead when building
the include list, so then hopefully it will do what I want. When it works
I'll post it back here.

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel (00 44) 1223 811679
work: http://www.aleph1.co.uk/     play: http://www.chaos.org.uk/~wookey/



Reply to: