Re: latest-only kernel.org mirrors

Riley Williams (rhw@bigfoot.com)
Fri, 8 Jan 1999 13:32:38 +0000 (GMT)


Hi Peter.

>> I have an idea for a new kind of mirror. Since 90% of all
>> downloads probably are the newest kernel only, we might
>> want to setup a very large latest-only mirror network
>> where we distribute files by rsync so all mirrors have
>> the latest kernel source immediately.

>> I think that would rid us of the lack of mirrors (who can't
>> spare 50 megs on his/her server?) and of the kernel.org
>> overloading (since the rsync mechanism makes sure that all
>> mirrors have the latest files within an hour or so).

>> An yes, I volunteer to be one of those light-weight mirrors.
>> My network connection is fast and mostly idle, but my disk
>> space is quite limited...

> This is somewhat nice, but is a huge overhead for me personally.
> I'd like to do it, but I don't have the time to create a whole new
> system of mirrors at the moment.

Actually, I could create such a mirror quite easily: All it needs is
for the mirror site to run a script that:

1. Deletes all except the latest file in each tree.

2. Mirrors any files created in the last week.

Let's see: Assuming I have the relevant config file set up for mirror
to do stage 2, the following script should do it (untested though)...

Q> #!/bin/bash
Q> function droplast() {
Q> local N=`/bin/ls -1rt $1-* | tr -s '\n' ' '`
Q> echo $N | rev | cut -d ' ' -f 2- | rev
Q> }
Q> cd ~ftp/pub/Linux/Kernel ; # or wherever...
Q> for DIR in * ; do
Q> rm -f `droplast $DIR/linux` `droplast $DIR/patch`
Q> done
Q> mirror /etc/mirrors/ftp.kernel.org

Comments?

Best wishes from Riley.

---
 * ftp://ps.cus.umist.ac.uk/pub/rhw/Linux
 * http://ps.cus.umist.ac.uk/~rhw/kernel.versions.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/