[WBEL-users] alternative mirrors for my purpose?
Christian Reeves
creeves@kua.net
Mon, 22 Nov 2004 19:20:24 -0500
> #!/bin/sh
>
> # re-rsync'ing the entire os and iso dirs is probably
> overkill given # that they never change. However, it should
> be relatively light # over rsync, and I want a script that
> always works from scratch.
>
> RSYNC_BASE="rsync://mirror.physics.ncsu.edu/whitebox/"
> versionList="3.0"
>
> for ver in $versionList
> do
> for subdir in os iso
> do
> for arch in i386
> do
> echo "Fetching WhiteBox:
> /mirrors/whitebox/$ver/en/$subdir/"
> mkdir -p
> /mirrors/whitebox/$ver/en/$subdir/$arch
> rsync -avr -P
> $RSYNC_BASE/$ver/en/$subdir/$arch/.
> /mirrors/whitebox/$ver/en/$subdir/$arch/.
> done
> done
> rsync -avr -P $RSYNC_BASE/$ver/en/updates/.
> /mirrors/whitebox/$ver/en/updates/.
> done
>
> # God only knows what brain damage the mirrors have done to
> i386 and # updates directory, I used to never do this, but
> after getting # tired of waiting days for the mirrors and
> whiteboxlinux.org to # re-sync, I do this myself if only so
> my repository will always # have a consistant set of yum header files.
>
> /usr/bin/yum-arch -s -v /mirrors/whitebox/3.0/en/os/i386
> /usr/bin/yum-arch -s -v /mirrors/whitebox/3.0/en/updates #
> End of shell script.
>
> Run the above script, modifying the base path (I really
> should put in MIRROR_PREFIX="/mirrors/whitebox", and use
> $MIRROR_PREFIX in the script.
>
>
> Then add this in the appropriate place to your httpd.conf:
> (Personally, I place it in /etc/httpd/conf.d/kickstart.conf
> where I put all the Apache directives to make my kickstart server go).
>
> Alias /whitebox "/mirrors/whitebox"
>
> <Directory "/mirrors/whitebox">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> Then do:
>
> # service httpd restart
>
> Use your favorite web browser to ensure that
> http://hostname/whitebox does in fact work.
>
> Now edit /etc/yum.conf to point to the correct relative path.
Brilliant...syncing now...I'll test her out tomorrow. Thanks again!!