diff options
author | Olivier Blin <blino@mageia.org> | 2011-03-15 13:58:31 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-03-15 13:58:31 +0000 |
commit | 4c4328833cb84e7e5e4eccbb385c9d4851bfd7b5 (patch) | |
tree | f6d8d18d835eb7a25088d351663a29c5058532d5 /tools/sync-trees.sh | |
download | draklive-config-4c4328833cb84e7e5e4eccbb385c9d4851bfd7b5.tar draklive-config-4c4328833cb84e7e5e4eccbb385c9d4851bfd7b5.tar.gz draklive-config-4c4328833cb84e7e5e4eccbb385c9d4851bfd7b5.tar.bz2 draklive-config-4c4328833cb84e7e5e4eccbb385c9d4851bfd7b5.tar.xz draklive-config-4c4328833cb84e7e5e4eccbb385c9d4851bfd7b5.zip |
import initial live config
Diffstat (limited to 'tools/sync-trees.sh')
-rwxr-xr-x | tools/sync-trees.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/sync-trees.sh b/tools/sync-trees.sh new file mode 100755 index 0000000..8eea0f6 --- /dev/null +++ b/tools/sync-trees.sh @@ -0,0 +1,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 |