Admin/mirror-dist
author kleing
Mon Mar 06 15:24:07 2000 +0100 (2000-03-06)
changeset 8346 562090b1f128
parent 8323 64b67ed25a59
child 8347 8927067ef107
permissions -rwxr-xr-x
switched to mirroring with rsync server
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@8323
     9
  sunbroy79)
wenzelm@8323
    10
    #test
wenzelm@8323
    11
    DEST=/tmp/isabelle-dist
wenzelm@8323
    12
    mkdir -p $DEST
wenzelm@8323
    13
    ;;
wenzelm@8322
    14
  *.cl.cam.ac.uk)
wenzelm@8322
    15
    DEST=/anfs/www/html/Research/HVG/Isabelle/dist
wenzelm@8322
    16
    ;;
wenzelm@8224
    17
  *)
wenzelm@8322
    18
    echo "Unknown destination directory for ${HOST}"
wenzelm@8224
    19
    exit 2
wenzelm@8224
    20
    ;;
wenzelm@8224
    21
esac
wenzelm@8224
    22
wenzelm@8224
    23
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
kleing@8346
    24
  rsync://sunbroy30.informatik.tu-muenchen.de:8730/isabelle-dist/. $DEST/.