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