source: soft/build_system/build_system/upload/robot/trunk/cooker-push-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: 1022 bytes
RevLine 
[1]1#!/bin/sh
2
3RSYNCOPT=" -l -H --delete --partial -az -l --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#machine=192.168.100.138
19machine=kenobi
20
21if [ -n "$*" ]; then
22    echo "Mirroring cooker to $machine"
23fi
24rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/distrib/cooker $machine:/mnt/BIG/distrib/
25# rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/distrib/cooker/ppc/media $machine:/mnt/BIG/distrib/cooker/ppc/
26
27#if [ -n "$*" ]; then
28#    echo "Mirroring cvs to $machine"
29#fi
30# Cooker cvs is now mirrored on $machine directly FL [Fri May 23 14:52:27 CEST 2003]
31#rsync -e "ssh -xc arcfour" $RSYNCOPT /C/cooker $machine:/mnt/BIG/cvs/
32#rsync -e "ssh -xc arcfour" $RSYNCOPT /C/harddrake $machine:/mnt/BIG/cvs/
33
34exit 0
Note: See TracBrowser for help on using the repository browser.