#!/bin/sh

########################################################
# Calls rsync with a set of built-in options optimized 
#   for transfer with a remote host.  Options are not
#   included here...see rsync.sh for that.
#
# Version 4
########################################################

SCRIPT_NAME="./rsync_remote.sh"
TARGET_SCRIPT="./rsync.sh"

# check that we have at least two parameters
if [ $# -gt 1 ]; then
        
        $TARGET_SCRIPT remote "$@"
        exit $?
        
# no args
else
        echo "Usage: $SCRIPT_NAME [--loop] [additional rsync options] source dest"
        echo "$TARGET_SCRIPT must be present and executable!"
        exit -1
fi
