From: Holger Levsen Date: Fri, 7 Sep 2012 08:57:56 +0000 (+0200) Subject: mirror to staging too X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=add5321d8c92c5a8e645d56ca2200ee966aaa6a6;p=profitbricks%2Fjenkins-build-scripts.git mirror to staging too --- diff --git a/liveboot_build.sh b/liveboot_build.sh index 5014b20..289c58c 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -17,22 +17,6 @@ export PB_SUITE=production-proposed-updates RSYNC_SRC=/srv/mirror/liveboot RSYNC_FILTER='' -# -# Overwrite settings depending on profile used -# - i.e. not enough space in PBB to contain all images -# -#case $LIVE_TYPE in -# default|staging) -# RSYNC_SRC="$RSYNC_BASE/" -# RSYNC_DST="liveboot@10.1.1.1/livebuild/" # mgmt1 will transfer this further, see mgmt1:/etc/rsyncd.conf -# RSYNC_FILTER='--include=default-** --include=staging-** --exclude=*' -# ;; -# pbb|pre-staging) -# RSYNC_SRC="$BUILD_TARGET/" -# RSYNC_DST="liveboot@10.254.1.1/livebuild/" -# RSYNC_FILTER='' -# ;; -#esac # WORK IN PROGRESS @@ -40,6 +24,8 @@ RSYNC_FILTER='' RSYNC_DST1="liveboot@riserver/liveboot/" # pbb RSYNC_DST2="liveboot@10.254.1.1/liveboot/" +# staging +RSYNC_DST3="liveboot@10.252.1.1/liveboot/" figlet "still work in progress, but... getting there" @@ -72,9 +58,14 @@ echo echo "Now rsyncing results to $RSYNC_DST1 ..." rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST1 figlet "mirror to r+i OK" -echo "Now rsyncing results to $RSYNC_DST1 ..." +echo "Now rsyncing results to $RSYNC_DST2 ..." rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST2 figlet "mirror to pbb OK" +echo "Now rsyncing results to $RSYNC_DST3 ..." +rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST3 +figlet "mirror to staging OK" + +echo "mirror to DCs is MISSING" # # cleanup /srv/mirror, keep MAX number of images