|
|
| Line 69: |
Line 69: |
|
| |
|
| * Base and Updates (6.3 and higher) | | * Base and Updates (6.3 and higher) |
| CENTOS_MAJOR=6
| |
| CENTOS_FULL=6.5 | | CENTOS_FULL=6.5 |
| DATE=2013-12-03
| | rsync -v -n -aP --filter='-r centos-version.txt' --exclude isos --exclude drpms --exclude centosplus --exclude xen4 --exclude fasttrack --exclude contrib --exclude cr \ |
| rsync -v -n -aP \ | | --delete --delete-excluded rsync://linux.mirrors.es.net/centos/$CENTOS_FULL/ /data/repos/yum/mirrors/centos/$CENTOS_FULL/ |
| --filter='-r updates/Source' --filter='-r os/Source' --filter='-r centos-version.txt'\
| |
| --exclude isos --exclude drpms --exclude centosplus --exclude xen4 --exclude fasttrack --exclude contrib --exclude cr \
| |
| --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/$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
| |
| 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:
| |
| 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 ==== |