Admin/mirror-dist
author wenzelm
Wed Mar 01 16:39:17 2000 +0100 (2000-03-01)
changeset 8322 6ba8356baa34
parent 8224 97e26127fb6b
child 8323 64b67ed25a59
permissions -rwxr-xr-x
proper setup;
wenzelm@8224
     1
#!/bin/bash
wenzelm@8224
     2
#
wenzelm@8224
     3
# $Id$
wenzelm@8224
     4
#
wenzelm@8224
     5
wenzelm@8322
     6
HOST=$(hostname)
wenzelm@8322
     7
wenzelm@8322
     8
case  ${HOST} in
wenzelm@8322
     9
  *.cl.cam.ac.uk)
wenzelm@8322
    10
    USER=paulson
wenzelm@8322
    11
    DEST=/anfs/www/html/Research/HVG/Isabelle/dist
wenzelm@8322
    12
    ;;
wenzelm@8322
    13
  sunbroy79)
wenzelm@8322
    14
    DEST=/tmp/isabelle-dist
wenzelm@8224
    15
    ;;
wenzelm@8224
    16
  *)
wenzelm@8322
    17
    echo "Unknown destination directory for ${HOST}"
wenzelm@8224
    18
    exit 2
wenzelm@8224
    19
    ;;
wenzelm@8224
    20
esac
wenzelm@8224
    21
wenzelm@8224
    22
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
wenzelm@8322
    23
  $USER@sunbroy30.informatik.tu-muenchen.de:/home/html/isabelle/html-data/dist/. $DEST/.