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
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"
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