From a25018ada88a75bf7075be9cb8da94170fee0a24 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Mon, 30 Jul 2012 20:15:58 +0200 Subject: [PATCH] livebuild: do not transfer all files --- live_build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/live_build.sh b/live_build.sh index 733d820..0cf7790 100755 --- a/live_build.sh +++ b/live_build.sh @@ -35,10 +35,12 @@ case $LIVE_TYPE in default|staging) RSYNC_SRC="$RSYNC_BASE/" RSYNC_DST="livebuild@10.1.1.1/livebuild/" + RSYNC_FILTER="--filter=\"+ default-*\" --filter=\"+ staging-*\" --filter=\"- *\"" ;; - pbb) + pbb|pre-staging) RSYNC_SRC="$BUILD_TARGET/" RSYNC_DST="livebuild@10.254.1.1/livebuild/" + RSYNC_FILTER="--filter=\"+ pbb-*\" --filter=\"+ pre-staging-*\" --filter=\"- *\"" ;; esac @@ -83,7 +85,7 @@ echo cat $BUILD_TARGET/pserver.packages echo echo "Now rsyncing results to $RSYNC_BASE ..." -rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete $RSYNC_SRC/ rsync://$RSYNC_DST +rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST figlet "mirror OK" -- 2.39.5