default|staging)
RSYNC_SRC="$RSYNC_BASE/"
RSYNC_DST="livebuild@10.1.1.1/livebuild/"
+ RSYNC_FILTER="--filter=\"+ default-*\" --filter=\"+ staging-*\" --filter=\"- *\""
;;
- pbb)
+ pbb|pre-staging)
RSYNC_SRC="$BUILD_TARGET/"
RSYNC_DST="livebuild@10.254.1.1/livebuild/"
+ RSYNC_FILTER="--filter=\"+ pbb-*\" --filter=\"+ pre-staging-*\" --filter=\"- *\""
;;
esac
cat $BUILD_TARGET/pserver.packages
echo
echo "Now rsyncing results to $RSYNC_BASE ..."
-rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete $RSYNC_SRC/ rsync://$RSYNC_DST
+rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$RSYNC_DST
figlet "mirror OK"