]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
liveboot_rsync.sh: Do not delete liveboots from new DC Manager UI
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 4 Feb 2015 13:49:45 +0000 (14:49 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 4 Feb 2015 13:49:45 +0000 (14:49 +0100)
The old liveboots (trigger by https://liveboot/) are named
"liveboot-$BUILDDATE-$JENKINSBUILDNUMBER" (e.g. liveboot-20150127-2040) and new
liveboots (trigger by DC Manager) are name "liveboot-$year.$number" (e.g.
liveboot-2015.20). liveboot_rsync.sh should only rsync the old liveboots and do
not touch new liveboots.

liveboot_rsync.sh

index 64467cb5d7e68fb1ab7b6d30be38e9a52a162b31..efe80cd81f35113ffaefa4e8adbcb755208b177b 100755 (executable)
@@ -11,7 +11,7 @@ export
 # Define default settings
 #
 RSYNC_SRC=/srv/mirror/liveboot
-RSYNC_FILTER='--include=liveboot-** --include=pending-approval --exclude=*'
+RSYNC_FILTER='--include=liveboot-201[0-9][0-9][0-9][0-9][0-9]-** --include=pending-approval --exclude=*'
 
 #
 # destination patterns, must contain username and path and trailing slash, aka $USER@$HOST/$PATH/