summaryrefslogtreecommitdiffstats
path: root/tools/sync-trees.sh
blob: 8eea0f671b2e1509273897253280749f67fb39fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#MEDIA=/media/non-free/release
[ -n "$1" ] && DRY_RUN=-n
DIST=/cooker/i586
ROOT=$DIST$MEDIA
SOURCE=/live/mnt/BIG/dis/devel$ROOT
DEST=/mnt/field/dis/local$ROOT
TEST=media/main/release/media_info/UPDATING

rsync $DRY_RUN -avP -lHz -e 'ssh -xc arcfour' --delete --delete-excluded --exclude 'debug_*/*/*' --exclude SRPMS $SOURCE/ $DEST

if [ -e "$DEST/$TEST" ]; then
    echo
    echo "Warning: package upload in progress"
    echo "Resync tree!"
    exit 1
fi

exit 0