File: rsync-ssl.in

package info (click to toggle)
rsync 3.1.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,672 kB
  • sloc: ansic: 41,019; sh: 5,447; perl: 1,932; makefile: 314; python: 83
file content (12 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download | duplicates (6)
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 "${@}"