Add extensions to the default no-compress list.
[rsync.git] / rsync-ssl
blobf3e365d7cf3909663bb111d8162bea6a2f378272
1 #!/bin/bash
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=/}"
8 shift
9 fi
11 case "$@" in
12 *rsync://*) ;;
13 *::*) ;;
15 echo "You must use rsync-ssl with a daemon-style hostname." 1>&2
16 exit 1
18 esac
20 mydir="${0%/*}"
22 exec "$mydir/rsync" --rsh="$mydir/rsync-ssl-rsh" "${@}"