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
     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   sunbroy51)
    16     DEST=/home/html/isabelle/html-data
    17     ;;
    18   *.cl.cam.ac.uk)
    19     USER=paulson
    20     DEST=/anfs/www/html/Research/HVG/Isabelle
    21     ;;
    22   *)
    23     echo "Unknown destination directory for ${HOST}"
    24     exit 2
    25     ;;
    26 esac
    27 
    28 rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
    29   $USER@sunbroy2.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.