[CentOS-mirror] mirror centos 6.X only

Thu Dec 26 01:09:12 UTC 2013
Gene Liverman <gliverma at westga.edu>

Mirroring via httpis way more of a pain and uses WAY more bandwidth than
rsync since the latter just pulls the new or changed files. Mirroring just
6 is as simple as making the remote directory the 6 ones. I suggest
something like the following which should also keep the symlink up to date:

RSYNC="`which rsync`"
OPTS="--delay-updates --delete-delay --devices --links --partial --perms
--progress --recursive --sparse --specials --timeout=600 --times --quiet"
DST="/some/local/dir"
SRC="rsync://eu-msync.centos.org/"

# CentOS 6 Repos
MSG="Starting sync of CentOS 6 repos"
echo "${MSG}"
logger -t rsync "${MSG}"
${RSYNC} ${OPTS} ${SRC}/centos-6/* ${DST}/CentOS/


--
Gene Liverman
Systems Administrator
Information Technology Services
University of West Georgia
gliverma at westga.edu
678.839.5492

ITS: Making Technology Work for You!

This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return mail, delete this message, and destroy any
copies. Any dissemination or use of this information by a person other than
the intended recipient is unauthorized and may be illegal or actionable by
law.

On Dec 25, 2013 7:42 PM, "Adrian Sevcenco" <Adrian.Sevcenco at spacescience.ro>
wrote:

> Hi! I would like to setup a centos mirror but only with centos 6 data.
> Would be enough to use http://eu-msync.centos.org/centos-6 ?
>
> is it ok a command like:
> rsync  -avSH --delay-updates --delete $remote_dir $mirror_dir
>
> where remote-dir is rsync://eu-msync.centos.org/centos-6 ?
>
> is there a way to use a http mechanism? (i imagine that
> eu-msync.centos.org is an alias to the closest mirror and most often the
> http is used and less rsync)
>
> Thanks!
> Adrian
>
>
> --
> ----------------------------------------------
> Adrian Sevcenco, Ph.D.                       |
> Institute of Space Science - ISS, Romania    |
> adrian.sevcenco at {cern.ch,spacescience.ro} |
> ----------------------------------------------
> _______________________________________________
> CentOS-mirror mailing list
> CentOS-mirror at centos.org
> http://lists.centos.org/mailman/listinfo/centos-mirror
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-mirror/attachments/20131225/c9946462/attachment-0006.html>