#!/bin/sh

#RSYNC_MIRROR=rsync://alpha.voyage.hk/voyage
RSYNC_MIRROR=rsync://es.voyage.hk
DEST=/.
if [ ! -z $1 ] ; then  DEST=$1; fi

LOG=$DEST/voyage-mirror.log

#port is 8730 instead of 873
RSYNC_OPT="--port=8730 -avH --delete --delete-after --timeout=600 \
	--exclude=.* --block-size=8192"

# rsync commands
RSYNC_CMD="rsync  "$RSYNC_OPT" "$RSYNC_MIRROR" "$DEST" "
$RSYNC_CMD

