source: soft/build_system/build_system/upload/robot/trunk/cooker-get-kenobi @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 955 bytes
Line 
1#!/bin/sh
2
3RSYNCOPT=" -l --partial -az -e ssh --delete --timeout=120 $@"
4
5#LOCK=/mnt/BIG/distrib/cooker/cooker/Mandrake/.update_in_progress
6#LOCK=/mnt/BIG/distrib/.update_in_progress
7# check lock created by the admin script to be sure
8# to have a clean tree.
9
10#  ping -c 1 -i 30 kenobi > /dev/null
11
12#  if [ $? != 0 ]; then
13#      if [ -n "$*" ]; then
14#       echo "kenobi is down"
15#      fi
16#      exit 0
17#  fi
18
19if [ -n "$*" ]; then
20    echo "Mirroring updates from kenobi"
21fi
22rsync --delete -l --partial -az -e "ssh -xc arcfour" --timeout=120 $@ kenobi:/mnt/BIG/distrib/updates /mnt/BIG/distrib/
23chmod -R go-w /mnt/BIG/distrib/updates/
24rsync --delete -l --partial -az -e "ssh -xc arcfour" --timeout=120 "$@" kenobi:/mnt/BIG/distrib/updates_test/  /mnt/BIG/distrib/updates_test/
25
26if [ -n "$*" ]; then
27    echo "Mirroring cvs from kenobi"
28fi
29rsync  --delete -l --partial -az -e ssh --timeout=120 $@ kenobi:/mnt/BIG/cvs/internal/mandrake /mnt/BIG/cvs/internal/
Note: See TracBrowser for help on using the repository browser.