canmove, Confirmed users
1,394
edits
Line 44: | Line 44: | ||
* Base and Updates (6.3 and higher) | * Base and Updates (6.3 and higher) | ||
rsync -n -aP | CENTOS_MAJOR=6 | ||
CENTOS_FULL=6.3 | |||
DATE=2012-07-12 | |||
rsync -v -n -aP \ | |||
--filter='-r updates/Source' --filter='-r os/Source' --filter='-r centos-version.txt'\ | |||
--exclude isos --exclude images --exclude drpms \ | |||
--delete --delete-excluded \ | |||
rsync://linux.mirrors.es.net/centos/$CENTOS_FULL/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/ | |||
rsync -v -n -aP \ | |||
rsync://archive.kernel.org/centos-vault/$CENTOS_FULL/os/Source /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/os/Source | |||
rsync -v -n -aP \ | |||
rsync://archive.kernel.org/centos-vault/$CENTOS_FULL/updates/Source /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/updates/Source | |||
echo $CENTOS_FULL > /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/centos-version.txt | |||
* sync these at "nearly" the same time, so that we have a good chance of having the srpm for a particular RPM | |||
* when re-mirroring, it may save a bit of time and space to use rsync's hard-link capabilities to copy the last date to the new date. This can be done with the --link-dest option, but you'll more likely want to do it on every host (this will save a lot of space!), like so: | |||
OLDDATE=2012-07-12 | |||
NEWDATE=2012-09-06 | |||
mkdir /data/repos/yum/mirrors/centos/6/$NEWDATE/ | |||
rsync -v -aP --link-dest=/data/repos/yum/mirrors/centos/6/$OLDDATE/ /data/repos/yum/mirrors/centos/6/$OLDDATE/ /data/repos/yum/mirrors/centos/6/$NEWDATE/ | |||
=== Fedora 16 === | === Fedora 16 === |