#!/bin/sh # Rsync/mirror all important RHL/Fedora releases, updates and addons to # your local harddisk. # verify this script is ok for you and comment out the next line: exit 0 # where data is written to on the local harddisk DATA=/var/www/html/mirror # delim for output NEW="-----------------------------------------------------------------------" # standard rsync options RSYNC="rsync -av --delete --delete-excluded" test "x$1" = "xtest" && RSYNC="$RSYNC -n" # my main mirror host HOST=rsync://ftp-stud.fht-esslingen.de # another good synced up mirror host KERNELORG=rsync://mirrors.kernel.org # Mirror of Fedora with only relevant x86 parts in it. EX="ppc ppc64 s390 s390x ia64 x86_64 debug iso" E="" for i in $EX ; do E="$E --exclude=**/$i" done E="$E --exclude=/test --exclude=/development/headers" #E="$E --exclude=/1/SRPMS --exclude=/2/SRPMS" echo $NEW; echo "Rsync RH fedora:" $RSYNC $E $KERNELORG/fedora/core/ $DATA/fedora # 2004/01/03: list of good rsync mirrors I found by # testing against rsync mirror list from official web pages: #$RSYNC -n $E rsync://www.las.ic.unicamp.br/fedora--linux-core/ $DATA/fedora #$RSYNC -n $E rsync://sunsite.mff.cuni.cz/fedora/fedora/ $DATA/fedora #rsync://rsync.uni-bayreuth.de/fedora-linux-core/ #rsync://ftp.join.uni-muenster.de/fedora-linux-core/ #rsync://ftp.rhnet.is/pub/fedora/ #rsync://zeniiia.linux.org.uk/fedora-linux-core/ test "x$1" = "xfedora" && exit 0 FRESHRPMS=rsync://ayo.freshrpms.net/ftp/pub/freshrpms/pub/freshrpms/ayo/fedora/linux/ # XXX: correct headers/* are missing from this mirror: #FRESHRPMS=$HOST/freshrpms/ayo/fedora/linux/1/i386/freshrpms/ echo $NEW; echo "Rsync freshrpms net:" $RSYNC -L $FRESHRPMS/1/i386/freshrpms/ $DATA/freshrpms/1 $RSYNC -L $FRESHRPMS/2/i386/freshrpms/ $DATA/freshrpms/2 echo $NEW; echo "Rsync fedora.us:" $RSYNC -L --exclude=/os --exclude=/updates --exclude=updates-testing \ --exclude=/k12ltsp \ $KERNELORG/fedora.us/fedora/fedora/1/i386/yum/ $DATA/fedora.us/1 for i in stable unstable testing ; do $RSYNC $KERNELORG/fedora.us/fedora/fedora/2/i386/SRPMS.$i/ \ $DATA/fedora.us/2/$i/SRPMS $RSYNC $KERNELORG/fedora.us/fedora/fedora/2/i386/RPMS.$i/ \ $DATA/fedora.us/2/$i/RPMS yum-arch -q -s $DATA/fedora.us/2/$i done # All releases from Red Hat Linux as ISO images. #$RSYNC $HOST/redhat/redhat/linux/7.3/en/iso/i386/ $DATA/iso/redhat/7.3/ #$RSYNC $HOST/redhat/redhat/linux/8.0/en/iso/i386/ $DATA/iso/redhat/8.0/ #$RSYNC $HOST/redhat/redhat/linux/9/en/iso/i386/ $DATA/iso/redhat/9/ # All releases from Red Hat within a big tree. #$RSYNC $HOST/redhat/redhat/linux/7.3/en/os/i386/ $DATA/redhat/7.3/ #$RSYNC $HOST/redhat/redhat/linux/8.0/en/iso/i386/ $DATA/redhat/8.0/ #$RSYNC $HOST/redhat/redhat/linux/9/en/iso/i386/ $DATA/redhat/9/ # Mirror older rpm updates for RHL 7.3/8.0/9. EX="alpha alphaev6 s390 s390x sparc sparcv8 sparcv9 sparc64 x86_64" EX="$EX ia64 iSeries pSeries ja kr" E="" for i in $EX ; do E="$E --exclude=**/$i" done EX="current other_prod powertools enterprise 1.* 2.* 3.* 4.* 5.* 6.* 7.0 7.1 7.2" for i in $EX ; do E="$E --exclude=/$i" done echo $NEW; echo "Rsync updates:" $RSYNC $E $HOST/redhat/redhat/linux/updates/ $DATA/updates echo $NEW; echo "mirror 2.1AS src.rpms:" $RSYNC $HOST/redhat/redhat/linux/updates/enterprise/2.1AS/en/os/SRPMS/ \ $DATA/updates-rhel/2.1 echo $NEW; echo "mirror 3AS src.rpms:" $RSYNC $HOST/redhat/redhat/linux/updates/enterprise/3AS/en/os/SRPMS/ \ $DATA/updates-rhel/3 #echo $NEW; echo "mirror Arjan's 2.6 kernel:" #lftp -c "mirror --delete http://people.redhat.com/arjanv/2.5/ $DATA/kernel-2.6" LIVNA=http://rpm.livna.org/fedora echo $NEW; echo "mirror livna.org:" lftp -c "mirror --delete $LIVNA/1/i386/yum/ $DATA/livna.org/1" lftp -c "mirror --delete $LIVNA/2/i386/yum/ $DATA/livna.org/2" lftp -c "mirror --delete $LIVNA/2/i386/SRPMS.stable/ $DATA/livna.org/2-SRPMS-stable" lftp -c "mirror --delete $LIVNA/2/i386/SRPMS.testing/ $DATA/livna.org/2-SRPMS-testing" lftp -c "mirror --delete $LIVNA/2/i386/SRPMS.unstable/ $DATA/livna.org/2-SRPMS-unstable" # flash plugin http://macromedia.mplug.org/ # http://videl.ics.hawaii.edu/pipermail/linuxflash/2003-November/000087.html FLASH=http://sluglug.ucsc.edu/macromedia/apt/fedora echo $NEW; echo "mirror flash plugin:" lftp -c "mirror --delete $FLASH/1/ $DATA/flash-plugin/1" lftp -c "mirror --delete $FLASH/2/ $DATA/flash-plugin/2" TAO=http://dist.taolinux.org/tao-1.0-SRPMS/ echo $NEW; echo "tao src.rpm mirror:" lftp -c "mirror --delete $TAO $DATA/tao"