Hello,
I just realized I wasn't carrying the DVD's. Please add mirror.cogentco.com (204.157.3.70) to the acl for msync-dvd.
Thanks,
brad
We are considering only syncing 4 & 5 on our internal mirror. Below is a script that was on the CentOS Mirror site. Would I be able to use this script to sync only 4 or 5? Or, is there a better way to accomplish this?
Regards,
Todd
File: sync_centos.sh
------------------------------
#!/bin/sh
rsync="/usr/local/bin/rsync -aqHz --delete --delay-updates --bwlimit=10240"
# this should be auto-selected, but the centos mirror script doesn't
# support selection by a specific protocol (i.e., rsync)
mirror=RSYNCURLGOESHERE::mirrors/centos
ver=4
archlist="i386 x86_64"
baselist="os updates"
local=/opt/mirrors/centos
for arch in $archlist
do
for base in $baselist
do
remote=$mirror/$ver/$base/$arch/
$rsync $remote $local/$ver/$base/$arch/
done
done
Todd Reed wrote:
We are considering only syncing 4 & 5 on our internal mirror. Below is a script that was on the CentOS Mirror site. Would I be able to use this script to sync only 4 or 5? Or, is there a better way to accomplish this?
depending on your needs, maybe a single rsync might fit better, as i needed it: (it's only for i386, it should be simple to extend this..)
rsync -av \ rsync://mirror.server.example.com/centos.org/ \ /local/path/to/centos.org/ \ --prune-empty-dirs \ --delete --delete-after --delete-excluded \ --include=/4 \ --include=/4*/ \ --include=/5/ \ --include=/5/os \ --include=/5/updates \ --include=/5*/ \ --exclude=/* \ --include='*/' \ --include=**/os/i386/CentOS** \ --include=**/updates/i386/RPMS/* \ --exclude='*'
but your question still remains: is there a better way..? (or a shorter include/exclude?) :)
Greetings, Tobi