Codebase list backuppc-rsync / 4c85227f-94b2-41bb-ba5d-4f723f99de85/main rsync-ssl.in
4c85227f-94b2-41bb-ba5d-4f723f99de85/main

Tree @4c85227f-94b2-41bb-ba5d-4f723f99de85/main (Download .tar.gz)

rsync-ssl.in @4c85227f-94b2-41bb-ba5d-4f723f99de85/mainraw · history · blame

#!/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 "${@}"