[CentOS] Best way to mirror CentOS locally

Tue Oct 18 15:48:53 UTC 2005
Alfred von Campe <alfred at 110.net>

> Kick off an rsync from your closest fast mirror, wait for this to
> complete, then setup a nightly cron job to keep in sync with this
> mirror. Something like...
>
> rsync -Pptrl --delete
> rsync://rsync.sunsite.org.uk/sites/msync.centos.org/CentOS/4/
> /local_repo/CentOS/4/

To speed things up (and to conserve disk space), you can add a 
--exclude=isos to the rsync command (and also --exclude="alpha" 
--exclude="ia64" --exclude="ppc" --exclude="s390*" --exclude="x86_64" 
if you only need/want the i386 stuff).

Alfred