[CentOS-mirror] New Mirror Setup Questions

Brandon Davidson brandond at uoregon.edu
Tue Mar 4 22:21:44 UTC 2008

I would just do this:

$rsync --exclude '/2*' --exclude '/3*' --exclude '/4*' $mirror $local

Also... if you're only mirroring 5, and only really intend it to be for 
your personal use... maybe you'd just be better off syncing from a tier 
2 mirror and keeping it private?

Maeltor wrote:
> Forgive me for being somewhat green here
> I have a few more questions.   Does this script look reasonable?  Is 
> there anything I need to adjust to use the lock files you posted?
> I want to restrict my mirror to Ver 5 to save on space and bandwidth 
> (and since realistically it probably won't be used by many people other 
> than me).
> Please have a look at this script:
> ver=5
> archlist="i386 x86_64"
> baselist="os updates"
> local=/var/www/centos
> for arch in $archlist
> do
>   for base in $baselist
>   do
>     remote=$mirror/$ver/$base/$arch/
>     $rsync $remote $local/$ver/$base/$arch/
>   done
> done

More information about the CentOS-mirror mailing list