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
Mirroring via httpis 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@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@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@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
that should work - you will have to try it though - bear in mind that when 7.x comes out you would have to update your mirroring command if you want to only mirror 7.x
using http to mirror is inefficient and is frowned upon heavily because of the load it generates on the servers you mirror from. using rsync on this scale is most efficient and rsync is actually the most common mechanism for mirroring
Kind regards, Anthony Somerset
Somerset Technical Solutions Ltd. www.somersettechsolutions.co.uk Registered in the UK – Company no. 07738444 VAT Registration No: 140 6916 22 T: +44 (0) 33 0088 2751 E: anthony@somersettechsolutions.co.uk PGP: 0x7C892BF5
On 24 Dec 2013, at 19:28, Adrian Sevcenco Adrian.Sevcenco@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@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Not only that, but using the command to only pull 6 means you miss out on the TIME and timestamp.txt files. If you miss those, then your mirror will be marked as out of date, and quickly disabled.
On Thu, Dec 26, 2013 at 2:27 AM, Anthony Somerset < anthony@somersettechsolutions.co.uk> wrote:
that should work - you will have to try it though - bear in mind that when 7.x comes out you would have to update your mirroring command if you want to only mirror 7.x
using http to mirror is inefficient and is frowned upon heavily because of the load it generates on the servers you mirror from. using rsync on this scale is most efficient and rsync is actually the most common mechanism for mirroring
Kind regards, Anthony Somerset
Somerset Technical Solutions Ltd. www.somersettechsolutions.co.uk Registered in the UK – Company no. 07738444 VAT Registration No: 140 6916 22 T: +44 (0) 33 0088 2751 E: anthony@somersettechsolutions.co.uk PGP: 0x7C892BF5
On 24 Dec 2013, at 19:28, Adrian Sevcenco Adrian.Sevcenco@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@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror