source: soft/build_system/build_system/upload/robot/trunk/community-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: 712 bytes
Line 
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
21for version in 10.0 10.1 10.2 2006.0
22do
23  if [ -n "$*" ]; then
24    echo "Mirroring community $version to $machine"
25  fi
26  rsync -e "ssh -xc arcfour" $RSYNCOPT --exclude jpackage /mnt/BIG/distrib/community/$version $machine:/mnt/BIG/distrib/community/
27done
Note: See TracBrowser for help on using the repository browser.