RSYNC_SRC=/srv/mirror/liveboot
RSYNC_FILTER=''
+#
+# destination patterns, must contain username and path and trailing slash, aka $USER@$HOST/$PATH/
+#
# ri server
RSYNC_DST1="liveboot@riserver/liveboot/"
# storage DC (mgmt11)
#
# only try to rsync if destination is pingable
#
- if ping -c 1 $(echo $1 | sed -s 's#.*@\([0-9.]*\).*#\1#' ) > /dev/null ; then
+ if ping -c 1 $(echo $1 | sed -s 's#.*@\(.*\)/.*/#\1#' ) > /dev/null ; then
echo "Now rsyncing results to $1 ..."
rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete --delete-excluded $RSYNC_FILTER $RSYNC_SRC/ rsync://$1
figlet "$2 OK"