canmove, Confirmed users
1,394
edits
Line 70: | Line 70: | ||
* Base and Updates (6.3 and higher) | * Base and Updates (6.3 and higher) | ||
CENTOS_MAJOR=6 | CENTOS_MAJOR=6 | ||
CENTOS_FULL=6. | CENTOS_FULL=6.5 | ||
DATE= | DATE=2013-12-03 | ||
rsync -v -n -aP \ | rsync -v -n -aP \ | ||
--filter='-r updates/Source' --filter='-r os/Source' --filter='-r centos-version.txt'\ | --filter='-r updates/Source' --filter='-r os/Source' --filter='-r centos-version.txt'\ | ||
Line 77: | Line 77: | ||
--delete --delete-excluded \ | --delete --delete-excluded \ | ||
rsync://linux.mirrors.es.net/centos/$CENTOS_FULL/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/ | 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/$CENTOS_FULL/os/Source/SPackages/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/os/source/ | |||
rsync -v -n -aP \ | |||
rsync://archive.kernel.org/centos/$CENTOS_FULL/updates/Source/SPackages/ /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/updates/source/ | |||
echo $CENTOS_FULL > /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/centos-version.txt | echo $CENTOS_FULL > /data/repos/yum/mirrors/centos/$CENTOS_MAJOR/$DATE/centos-version.txt | ||
time hardlink -v /data/repos/yum/mirrors/centos | time hardlink -v /data/repos/yum/mirrors/centos | ||
* 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: | * 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: |