[KLUG Members] SuSE 9.1 updates mirror - tonight.

Bruce Smith bruce at armintl.com
Fri Sep 10 08:56:29 EDT 2004


*WARNING*  I should have mentioned this before.  if you run this script,
make sure "$localdir" initally exists and is *EMPTY*.  This will MIRROR,
which means it downloads everything from the remote server, recursively.
Then it DELETES all local files that are not on the remote server!

So, if you do something silly like setting localdir=$HOME, then it will
DELETE EVERY FILE and SUBDIRECTORY IN YOUR HOME DIRECTORY!

Use at your own risk, yada yada.  :-)

Also, here's another script that will make a ISO image so you can burn
an "update CD".  So you can just load the CD and select from YAST:
"Patch CD Update".

The problem is since mid-July, the total size of the updates now exceeds
the size of a 700MB CDR.  So I guess you'll have to make an Update DVD
now.  :-)   But this will be useful for awhile after SuSE 9.2 comes out.

-------------------------------------------------------------------------
#!/bin/sh
set -x
VER=${1:-9.1}
d=`date +%Y%m%d`
cd /mnt/big2/ftp/suse${VER} || exit 1
rm -f /mnt/big2/iso/suse${VER}-update-*
mkisofs -J -r -m ./i386/update/${VER}/rpm/src -V "SuSE ${VER} Update ${d}" \
        -o /mnt/big2/iso/suse${VER}-update-${d}.iso .
-------------------------------------------------------------------------


 - BS


> 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.
> 
> ---------------------------------------------------------------------
> #!/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"
> ---------------------------------------------------------------------




More information about the Members mailing list