From: Mathias Klette Date: Mon, 30 Jul 2012 18:15:58 +0000 (+0200) Subject: livebuild: do not transfer all files X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a25018ada88a75bf7075be9cb8da94170fee0a24;p=profitbricks%2Fjenkins-build-scripts.git livebuild: do not transfer all files --- 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"