On Thu, 2005-10-27 at 11:56 +1000, Howard Lowndes wrote: > > Has anyone resolved this problem on their own networks? >
Hi Howard, Here is the script I use to mirror updates from my ISP's server. The "mirror" option on lftp is doing all the work. It also creates the repo locally, and set SELinux labels, which you may or may not need to do. Cheers, Ben --- cut here --- #!/bin/sh export TERM=Linux perform_mirror() # $1 - Description # $2 - URL # $3 - Destination { MIRROR=$2 REPODIR=$3 echo "`date` Mirroring $1" cd ${REPODIR} lftp -e 'mirror -e -x debuginfo && exit' ${MIRROR} # Report changed files find ${REPODIR} -name "*.rpm" -mtime -3 -ls createrepo ${REPODIR} > /dev/null 2>&1 chcon -R -t httpd_sys_content_t ${REPODIR} # Do /usr/local/downloads while we are here. chcon -R -t httpd_sys_content_t /usr/local/download/ } # mirror Fedora C3 updates #perform_mirror "FC3 Updates" http://mirror.vic.3fl.net/pub/fedora/linux/core/up dates/3/i386 /usr/local/download/fedora/3/updates perform_mirror "Redhat 9 Legacy Updates" \ http://mirror.vic.3fl.net/pub/fedoralegacy/redhat/9/updates/i386/ \ /usr/local/download/rh9/updates perform_mirror "FC4 Updates" \ http://mirror.vic.3fl.net/pub/fedora/linux/core/updates/4/i386 \ /usr/local/download/fedora/4/updates echo "`date` Mirroring completed" --- cut here --- -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html