Admin/mirror-main
author wenzelm
Fri, 08 Mar 2002 16:24:06 +0100
changeset 13049 ce180e5b7fa0
parent 12721 226fc0e2e7e3
child 13100 ff00791319e2
permissions -rwxr-xr-x
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12721
226fc0e2e7e3 #!/usr/bin/env bash;
wenzelm
parents: 9286
diff changeset
     1
#!/usr/bin/env bash
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     2
#
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     3
# $Id$
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     4
#
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
     5
8321
wenzelm
parents: 8225
diff changeset
     6
HOST=$(hostname)
wenzelm
parents: 8225
diff changeset
     7
wenzelm
parents: 8225
diff changeset
     8
case ${HOST} in
9286
4ccadbdbbd24 munich webserver is now sunbroy51
kleing
parents: 8321
diff changeset
     9
  sunbroy51)
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    10
    DEST=/home/html/isabelle/html-data
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    11
    ;;
8225
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    12
  *.cl.cam.ac.uk)
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    13
    USER=paulson
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    14
    DEST=/anfs/www/html/Research/HVG/Isabelle
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    15
    ;;
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    16
  *)
8321
wenzelm
parents: 8225
diff changeset
    17
    echo "Unknown destination directory for ${HOST}"
8222
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    18
    exit 2
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    19
    ;;
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    20
esac
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    21
55fed562d8ed mirror main page;
wenzelm
parents:
diff changeset
    22
rsync --rsh ssh --rsync-path /usr/local/dist/bin/rsync -va \
8225
fc5db20d7f6f Cambridge-specific modifications
paulson
parents: 8222
diff changeset
    23
  $USER@sunbroy1.informatik.tu-muenchen.de:/usr/proj/isabelle-repository/www/. $DEST/.