File: rsync-ssl.in

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