Admin/mirror-dist
author wenzelm
Wed, 01 Mar 2000 16:40:14 +0100
changeset 8323 64b67ed25a59
parent 8322 6ba8356baa34
child 8346 562090b1f128
permissions -rwxr-xr-x
test 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
8323
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
     9
  sunbroy79)
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    10
    #test
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    11
    DEST=/tmp/isabelle-dist
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    12
    mkdir -p $DEST
64b67ed25a59 test setup;
wenzelm
parents: 8322
diff changeset
    13
    ;;
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    14
  *.cl.cam.ac.uk)
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    15
    USER=paulson
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    16
    DEST=/anfs/www/html/Research/HVG/Isabelle/dist
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    17
    ;;
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    18
  *)
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    19
    echo "Unknown destination directory for ${HOST}"
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    20
    exit 2
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    21
    ;;
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    22
esac
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    23
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    24
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    25
  $USER@sunbroy30.informatik.tu-muenchen.de:/home/html/isabelle/html-data/dist/. $DEST/.