[mirror-admin] master server sync stats and recommendations

Carlos Carvalho carlos at fisica.ufpr.br
Wed Apr 22 11:25:39 EDT 2009


Chris Adams (cmadams at hiwaay.net) wrote on 22 April 2009 10:08:
 >If you have a RHEL/CentOS/Fedora/etc. server and you maintain it with
 >yum, you have python and python-urlgrabber installed.  The report_mirror
 >script is python and uses sockets.
[...]
 >So, an updated bash bit that first checks the timestamp and then the
 >contents (and updates the local timestamp if the contents didn't
 >change), only using bash, grep, date, cut, tr, and cat:

Very nice 10-tricks-per-line script removed :-)

For those that insist in not having a http server on the mirror, one
can also just do rsync upstream::module/, and it'll list the entries
in the root:

sagres# rsync --no-motd --old-d download.fedora.redhat.com::fedora-enchilada/                          
drwxr-xr-x        4096 2009/04/21 21:46:00 .
-rw-r--r--    41647577 2009/04/21 21:45:58 fullfilelist
drwxr-xr-x        4096 2007/05/21 18:37:48 linux

The --no-motd is only necessary because the masters run a pre-historic
version of rsync...

--


More information about the Mirror-admin mailing list