]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
liveboot_rsync: use filters and new rsync module for production
authorMathias Klette <mathias.klette@profitbricks.com>
Tue, 16 Apr 2013 15:22:33 +0000 (17:22 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Tue, 16 Apr 2013 15:35:39 +0000 (17:35 +0200)
liveboot_rsync.sh

index ba393fd1eadb7830641efaf49ea3c4054cd0de27..2240bc74e7c519d694170f72c617587f2fe549b2 100755 (executable)
@@ -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."