Admin/mirror-main
author wenzelm
Mon Jun 20 22:13:58 2005 +0200 (2005-06-20)
changeset 16485 77ae3bfa8b76
parent 16292 fbe2fc30a177
child 16573 cc86fd4eeee4
permissions -rwxr-xr-x
get_thm instead of obsolete Goals.get_thm;
improved msg;
     1 #!/usr/bin/env bash
     2 #
     3 # $Id$
     4 #
     5 # Mirrors the Isabelle home page (those directly on http://isabelle.in.tum.de)
     6 # It does *not* mirror the Isabelle distribution pages and downloads. There
     7 # is a separate utility (mirror-dist) for that.
     8 #
     9 # Usage: mirror-main
    10 #
    11 
    12 HOST=$(hostname)
    13 
    14 case ${HOST} in
    15   sunbroy2)
    16     DEST=/home/html/isabelle/html-data
    17     ;;
    18   atbroy1)
    19     DEST=/home/html/isabelle/html-data
    20     ;;
    21   *.cl.cam.ac.uk)
    22     USER=paulson
    23     DEST=/anfs/www/html/Research/HVG/Isabelle
    24     ;;
    25   *)
    26     echo "Unknown destination directory for ${HOST}"
    27     exit 2
    28     ;;
    29 esac
    30 
    31 echo "Warning: this script now mirrors the *complete* Isabelle site"
    32 
    33 rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va --copy-links \
    34   $USER@sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.