rsync-ssl [--type=SSL_TYPE] RSYNC_ARGS
The script requires that you specify an rsync-daemon arg in the style of either hostname:: (with 2 colons) or rsync://hostname/. The default port used for connecting is 874 (one higher than the normal 873) unless overridden in the environment. You can specify an overriding port via --port or by including it in the normal spot in the URL format, though both of those require your rsync version to be at least 3.2.0.
All the other options are passed through to the rsync command, so consult the rsync(1) manpage for more information on how it works.
- Specifies the program type that should be used to open the ssl connection. It must be one of openssl or stunnel. The --type=SSL_TYPE option overrides this, when specified.
- If specified, the value is the port number that is used as the default when the user does not specify a port in their rsync command. When not specified, the default port number is 874. (Note that older rsync versions (prior to 3.2.0) did not communicate an overriding port number value to the helper script.)
- If specified, the value is a filename that contains a certificate to use for the connection.
- If specified, the value is a filename that contains a certificate authority certificate that is used to validate the connection.
- Specifies the openssl executable to run when the connection type is set to openssl. If unspecified, the $PATH is searched for "openssl".
- Specifies the gnutls-cli executable to run when the connection type is set to gnutls. If unspecified, the $PATH is searched for "gnutls-cli".
- Specifies the stunnel executable to run when the connection type is set to stunnel. If unspecified, the $PATH is searched first for "stunnel4" and then for "stunnel".
rsync-ssl -aiv example.com::mod/ dest
rsync-ssl --type=openssl -aiv example.com::mod/ dest
rsync-ssl -aiv --port 9874 example.com::mod/ dest
rsync-ssl -aiv rsync://example.com:9874/mod/ dest
This script also supports a --type=gnutls option, but at the time of this release the gnutls-cli command was dropping output, making it unusable. If that bug has been fixed in your version, feel free to put gnutls into an exported RSYNC_SSL_TYPE environment variable to make its use the default.
A web site is available at https://rsync.samba.org/. The site includes an FAQ-O-Matic which may cover questions unanswered by this manual page.
Mailing lists for support and development are available at https://lists.samba.org/.
|07 Aug 2020||rsync-ssl 3.2.3|