Re: Mirror not updating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am Donnerstag, den 09.07.2009, 11:54 -0400 schrieb David Rosenstrauch:
> Allan McRae wrote:
> > Such as http://users.archlinux.de/~gerbra/mirrorcheck.html
> 
> Yes - exactly such as that!  :-)
> 
> Thanks much!  Didn't even know that page existed.

You also could easy check a mirror with this script:
---------------
#!/bin/sh
#
# Test Arch Linux Mirror status
# Parameter: URL to test (full path to Arch Linux dir on mirror)
# 2008/06/10 Gerhard Brauer <gerbra@xxxxxxxxxxxx>
#
ARCHES="i686 x86_64"
REPOS="core extra community"

echo
echo "Mirror-URL: $1"
echo "Last timestamp from rsync.archlinux.org (updated each hour)"
echo "------------------------------------------------------------"
for arch in ${ARCHES}; do
    for repo in ${REPOS}; do
        echo -e -n "$arch-$repo:\t"
        date +"%x %X" -u -d @$(wget -q -O - $1/$repo/os/$arch/lastsync)
    done
done
---------------

ex.: sh /tmp/mt.sh ftp://mirror.rit.edu/archlinux
shows you (in UTC) the lastsync time. Means: this mirror has last synced
to his upstream between the displayed timestap  and displayed timestamp
+ 1 hour.
To see the time according to your timezone, remove the -u parameter on
date call.

> DR

Gerhard "gerbra"




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux