find-mirror - Find the best mirror in a list of mirrors.

find-mirror is a utilily to extract and rank addresses and urls by reachability and data rate. It is meant to be used when presented with a list of links to mirrors, ftp sites, etc.

You can download it here.

Documentation can be found here.

Features: Examples:
(See documentation for detailed explanations.)
  1. Basic usage (input can be any arbitrary text):
        $ find-mirror  mirrors.html
        $ find-mirror  list1.dat list2.dat
        $ find-mirror < mirrors.txt
    
  2. Piped from lynx or wget:
        $ wget -O- http://foo.com/mirrors/ | find-mirror
    
  3. In parallel using the -j option (think `GNU make'):
        $ find-mirror -j 4  mirrors.html
    
  4. Just extract urls, don't contact them:
        $ find-mirror --extract  < mirrors.html
    
  5. Use different methods to rank the mirrors (native ping, echo response, connection establishment):
        $ find-mirror --ping    < mirrors.html
        $ find-mirror --echo    < mirrors.html
        $ find-mirror --connect < mirrors.html
        $ find-mirror --http    < mirrors.html
    
  6. Match anything that looks like a hostname (instead of full urls):
        $ find-mirror --relaxed  < mirrors.html
    
  7. Match only .org and .edu domains:
        $ find-mirror --domains='org,edu' < mirrors.html
    
  8. Match only Pennsylvania, New Jersey, and New York, USA domains:
        $ find-mirror --domains='(pa,nj,ny)\.us' < mirrors.html
    
  9. Match against a custom pattern:
        $ find-mirror --pattern='(ftp(\.[[:alnum:]-]+)+\.kernel.org)' < mirrors.html
    

SourceForge Logo