Hello
I'm the sysadmin at the University of Carabobo, Venezuela, and I want to make an only-i386 Public Centos Mirrow. Two questions:
*) The server will use 1/4 or less of an E1 link. Is it ok to use msync.centos.org::CentOS or should I sync from somewhere else in http://www.centos.org/modules/tinycontent/index.php?id=13 ? In the second case, is it ok to sync 2 times a day from one of those mirrors? *) Has anybody at hand a only-i386 rsync script to share with me?
Thanks in advance.
-- RedUC Universidad de Carabobo
*) Has anybody at hand a only-i386 rsync script to share with me?
Hi, this is the script I am using (I am not that familiar with shell scripting, so perhaps a fellow could suggest an easier way to do it). You can substitute '/data/mirrors' with the path you want the files to be stored at:
------------------------------------------------------------------ #!/bin/bash
MIRROR_PATH=/data/mirrors
rsync -azvH --delete --delete-excluded --exclude "s390/" --exclude "x86_64/" --exclude "s390x/" --exclude "alpha/" --exclude "ia64/" eu-msync.centos.org::CentOS $MIRROR_PATH/centos
find $MIRROR_PATH/centos -type l | xargs file|grep broken|awk -F: '{print $1}' > $MIRROR_PATH/broken.txt for i in `cat $MIRROR_PATH/broken.txt`; do rm $i; done rm -f $MIRROR_PATH/broken.txt chown -R root:nobody $MIRROR_PATH/centos find $MIRROR_PATH/centos -type f -exec chmod 0644 {} ; find $MIRROR_PATH/centos -type d -exec chmod 0755 {} ; ------------------------------------------------------------------
In the last few lines, I remove the broken links which are created because obviously we do not download nothing for other the platforms.
Hope this helps Regards, Greg
On Thu, 2006-09-21 at 09:19 -0400, RedUC wrote: <snip>
Is it ok to use msync.centos.org::CentOS or should I sync from somewhere else in http://www.centos.org/modules/tinycontent/index.php?id=13 ? In the second case, is it ok to sync 2 times a day from one of those mirrors?
The rules are, if you are going to be an official centos mirror, you can rsync from the centos.org servers ... otherwise pick on of the other mirrors from your link.
<snip>