Admin/mirror-main
author paulson
Mon Jul 21 13:02:07 2003 +0200 (2003-07-21)
changeset 14120 3a73850c6c7d
parent 13567 7f5bf04095bd
child 14229 bf89038cf551
permissions -rwxr-xr-x
Tidied some examples
wenzelm@12721
     1
#!/usr/bin/env bash
wenzelm@8222
     2
#
wenzelm@8222
     3
# $Id$
wenzelm@8222
     4
#
kleing@13567
     5
# Mirrors the Isabelle home page (those directly on http://isabelle.in.tum.de)
kleing@13567
     6
# It does *not* mirror the Isabelle distribution pages and downloads. There
kleing@13567
     7
# is a separate utility (mirror-dist) for that.
kleing@13567
     8
#
kleing@13567
     9
# Usage: mirror-main
kleing@13567
    10
#
wenzelm@8222
    11
wenzelm@8321
    12
HOST=$(hostname)
wenzelm@8321
    13
wenzelm@8321
    14
case ${HOST} in
kleing@9286
    15
  sunbroy51)
wenzelm@8222
    16
    DEST=/home/html/isabelle/html-data
wenzelm@8222
    17
    ;;
paulson@8225
    18
  *.cl.cam.ac.uk)
paulson@8225
    19
    USER=paulson
paulson@8225
    20
    DEST=/anfs/www/html/Research/HVG/Isabelle
wenzelm@8222
    21
    ;;
wenzelm@8222
    22
  *)
wenzelm@8321
    23
    echo "Unknown destination directory for ${HOST}"
wenzelm@8222
    24
    exit 2
wenzelm@8222
    25
    ;;
wenzelm@8222
    26
esac
wenzelm@8222
    27
wenzelm@8222
    28
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
kleing@13100
    29
  $USER@sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.