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.
# 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/