#!/bin/sh OPTS="-rtW --progress" # See if /usr/bin/rsync and /usr/bin/ssh are available if [[ ! -x "/usr/bin/rsync" || ! -x "/usr/bin/ssh" ]] ; then echo "You are missing /usr/bin/rsync or /usr/bin/ssh!" echo "Without these executeables this script won't do anything useful !!" echo "Exiting" exit 1 else "/usr/bin/rsync" ${OPTS} -e "/usr/bin/ssh" $@ fi