2 # This script supports using stunnel or openssl to secure an rsync daemon connection.
3 # The first option can be --type=stunnel or --type=openssl to choose your connection
4 # type (overriding any $RSYNC_SSL_TYPE default value).
6 if [[ "$1" == --type=* ]]; then
7 export RSYNC_SSL_TYPE
="${1/--type=/}"
15 echo "You must use rsync-ssl with a daemon-style hostname." 1>&2
22 exec "$mydir/rsync" --rsh="$mydir/rsync-ssl-rsh" "${@}"