We have a tons of centos servers and i got tired of updating and connecting to a slow mirror and waiting a long time for updates. So i decided just to create a local repository server.
Here is my script to sync
#!/bin/bash
/usr/bin/rsync -rtLv --progress rsync://pubmirrors.reflected.net/centos/5/ --exclude=debug/ --exclude=isos/ /var/www/html/centos/5/
/usr/bin/rsync -rtLv --progress rsync://pubmirrors.reflected.net/centos/5.5/ --exclude=debug/ --exclude=isos/ /var/www/html/centos/5.5/
/usr/bin/rsync -rtLv --progress rsync://pubmirrors.reflected.net/centos/5.4/ --exclude=debug/ --exclude=isos/ /var/www/html/centos/5.4/
My question is: Isn't the /5/ dir supposed to be a sym link to 5.5 or what ever the most current version is? Did my rsync script just treat it folder and download all the 5.5 files twice or is there some legitimate difference between /5/ and /5.5/
5
is typically the latest version and is usually a symlink but it depends on a mirror.We use this for our local mirror: