[KLUG Members] SuSE 9.1 updates mirror - tonight.

Bruce Smith bruce at armintl.com
Thu Sep 9 20:14:12 EDT 2004


> I was referring to mirroring the data. FTP is easy. :)

OK, just checking.  :-)

There are a lot of ways to mirror.  I used to use the "mirror" package
that comes with SuSE.  It's just a fancy PERL script.

But then I found very cool ftp command line client which has a builtin
mirror command.

Below is the script I use to mirror the data.  You have to uncomment the
mirror site of you choice, and change the local directory of where you
want to download it.

My local FTP root is /mnt/big2/ftp/ (see "$localdir" below) and set
"you" (yast) to update from "ftp://192.168.1.1/suse9.1" (change the IP
to your local FTP server).

---------------------------------------------------------------------
#!/bin/sh
 
VER=${1:-9.1}
 
site="mirror.mcs.anl.gov"
rmtdir="/pub/ftp.suse.com/i386/update/${VER}/"
 
#site="mirror.storagetek.com"
#rmtdir="/pub/systems/suse/i386/update/${VER}/"
 
#site="mirrors.usc.edu"
#rmtdir="/pub/linux/distributions/suse/i386/update/${VER}/"
 
#site="ftp-linux.cc.gatech.edu"
#rmtdir="/pub/suse/suse/i386/update/${VER}/rpm/i586/"
 
#site="distro.ibiblio.org"
#rmtdir="/pub/linux/distributions/suse/suse/i386/update/${VER}/"
 
#site="ftp.suse.com"
#rmtdir="/pub/suse/i386/update/${VER}/"
 
localdir="/mnt/big2/ftp/suse${VER}/i386/update/${VER}"
 
set -x
cd $localdir || exit 1
lftp $site -e "set ftp:list-options -a ; mirror -nev $rmtdir $localdir ; quit"
---------------------------------------------------------------------


> It would be handy for updating my own systems, but it would also be a good 
> learning experience. One of my boxes is on broadband at work but I'm restricted 
> to dial-up at home for now after moving into the country. Having a box to 
> update from locally would be a great help, especially since 3 of them are brand 
> new installs and need quite a few updates. I can't tie up the phone for as long 
> as they would take and the boss would get upset if I brought all those in to 
> work to update them.
> 
> -Rob Roye


> > > Just out of curiosity, how can one do that? 
> > 
> > Do what?  Mirror the data, or run a FTP server?
> > 
> > > I'd be interested in knowing how
> > > even for my own personal use. Downloading updates once is much better
> > than
> > > having to do it on all 5 of my boxes.
> > 
> > You may or may not save bandwidth by doing it.  When you mirror the
> > updates, you are likely to download a ton of stuff you don't need or
> > have installed on any of your boxes.  But it can be more convenient if
> > you mirror the data in a cron job when nobody is using the internet. 
> > 
> >  - BS
> > 
> > 
> > > -----Original Message-----
> > > From: members-bounces at kalamazoolinux.org
> > > [mailto:members-bounces at kalamazoolinux.org] On Behalf Of Bruce Smith
> > > Sent: Tuesday, September 07, 2004 1:04 PM
> > > To: KLUG
> > > Subject: [KLUG Members] SuSE 9.1 updates mirror - tonight.
> > > 
> > > I have a copy of the complete SuSE 9.1 updates mirrored on my laptop,
> > > and I'm running a FTP server, so anyone who wants to update their SuSE
> > > installation can do so at the meeting tonight, fast and free.
> > 



More information about the Members mailing list