summaryrefslogtreecommitdiff
path: root/rsync-ssl.in
blob: da58d6afac3dad09694c8e66afdbf35f2cf33c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# This script supports using stunnel to secure an rsync daemon connection.
# Note that this requires at least version 4.x of stunnel.
case "$@" in
*rsync://*) ;;
*::*) ;;
*)
    echo "You must use rsync-ssl with a daemon-style hostname." 0>&1
    exit 1
    ;;
esac
exec @bindir@/rsync --rsh=@bindir@/stunnel-rsync "${@}"