source: soft/build_system/build_system/upload/robot/trunk/other-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: 1.7 KB
Line 
1#!/bin/sh
2
3RSYNCOPT=" --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
19machine=kenobi
20if [ -n "$*" ]; then
21    echo "Mirroring fedora to kenobi"
22fi
23rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/distrib/fedora kenobi:/mnt/BIG/distrib/
24
25if [ -n "$*" ]; then
26    echo "Mirroring stable to kenobi"
27fi
28rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/distrib/stable kenobi:/mnt/BIG/distrib/
29
30if [ -n "$*" ]; then
31    echo "Mirroring ppc to $machine"
32fi
33rsync -e "ssh -xc arcfour" $RSYNCOPT --exclude Mandrake/mdkinst --exclude Mandrake/base/*.bz2 --exclude boot /mnt/BIG/distrib/cooker/ppc/ $machine:/mnt/BIG/distrib/cooker/ppc/
34rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/distrib/cooker/contrib/ppc $machine:/mnt/BIG/distrib/cooker/contrib/
35
36if [ -n "$*" ]; then
37    echo "Mirroring rejected to $machine"
38fi
39rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/dis/rejected/ $machine:/mnt/BIG/distrib/rejected/
40
41if [ -n "$*" ]; then
42    echo "Mirroring old to $machine"
43fi
44rsync -e "ssh -xc arcfour" $RSYNCOPT /mnt/BIG/dis/old/ $machine:/mnt/BIG/distrib/old/
45
46if [ -n "$*" ]; then
47    echo "Mirroring testing club part to kenobi"
48fi
49rsync $RSYNCOPT /mnt/BIG/dis/testing/Mandrivaclub/ kenobi:/mnt/BIG/distrib/testing/Mandrivaclub/
50
51if [ -n "$*" ]; then
52    echo "Mirroring opensuse sources to kenobi"
53fi
54rsync $RSYNCOPT /mnt/BIG/dis/opensuse/ kenobi:/mnt/BIG/distrib/opensuse/
Note: See TracBrowser for help on using the repository browser.