Admin/mirror-dist
author wenzelm
Mon, 06 Mar 2000 15:44:51 +0100
changeset 8347 8927067ef107
parent 8346 562090b1f128
child 8396 16f6de8c897b
permissions -rwxr-xr-x
rsyncd setup; --delete mode (beware!);
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
    DEST=/anfs/www/html/Research/HVG/Isabelle/dist
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    16
    ;;
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    17
  *)
8322
6ba8356baa34 proper setup;
wenzelm
parents: 8224
diff changeset
    18
    echo "Unknown destination directory for ${HOST}"
8224
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    19
    exit 2
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    20
    ;;
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    21
esac
97e26127fb6b mirror dist page;
wenzelm
parents:
diff changeset
    22
8347
8927067ef107 rsyncd setup;
wenzelm
parents: 8346
diff changeset
    23
rsync -va --delete rsync://www4.in.tum.de:8730/isabelle-dist/. $DEST/.