From: Mathias Klette Date: Tue, 16 Apr 2013 15:22:33 +0000 (+0200) Subject: liveboot_rsync: use filters and new rsync module for production X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e2fa28f92c6f9e57ed16d62585ebeff527117860;p=profitbricks%2Fjenkins-build-scripts.git liveboot_rsync: use filters and new rsync module for production --- diff --git a/liveboot_rsync.sh b/liveboot_rsync.sh index ba393fd..2240bc7 100755 --- a/liveboot_rsync.sh +++ b/liveboot_rsync.sh @@ -11,7 +11,7 @@ export # Define default settings # RSYNC_SRC=/srv/mirror/liveboot -RSYNC_FILTER='' +RSYNC_FILTER='--include=liveboot-* --include=pending-approval --exclude=*' # # destination patterns, must contain username and path and trailing slash, aka $USER@$HOST/$PATH/ @@ -25,7 +25,7 @@ RSYNC_DST3="liveboot@10.254.1.1/liveboot/" # staging (mgmt9) RSYNC_DST4="liveboot@10.252.1.1/liveboot/" # dc1+2 (mgmt1) -RSYNC_DST5="liveboot@10.1.1.1/liveboot/" +RSYNC_DST5="liveboot@10.1.1.1/liveboot-dcmanager/" ping_and_rsync() { # @@ -33,7 +33,7 @@ ping_and_rsync() { # if ping -c 1 $(echo $1 | sed -s 's#.*@\(.*\)/.*/#\1#' ) > /dev/null ; then echo "Now rsyncing results to $1 ..." - rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$1 + rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete $RSYNC_FILTER $RSYNC_SRC/ rsync://$1 figlet "$2 OK" else echo "Warning: $1 down."