Debian Codegraph @

rsync-ssl.1.html

raw symbols SCIP
1 <html><head>
2 <title>rsync-ssl(1) manpage</title>
3 <meta charset="UTF-8"/>
4 <link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Mono&display=swap" rel="stylesheet">
5 <style>
6 body {
7 max-width: 50em;
8 margin: auto;
9 }
10 body, b, strong, u {
11 font-family: 'Roboto', sans-serif;
12 }
13 a.tgt { font-face: symbol; font-weight: 400; font-size: 70%; visibility: hidden; text-decoration: none; color: #ddd; padding: 0 4px; border: 0; }
14 a.tgt:after { content: '🔗'; }
15 a.tgt:hover { color: #444; background-color: #eaeaea; }
16 h1:hover > a.tgt, h2:hover > a.tgt, h3:hover > a.tgt, dt:hover > a.tgt { visibility: visible; }
17 code {
18 font-family: 'Roboto Mono', monospace;
19 font-weight: bold;
20 white-space: pre;
21 }
22 pre code {
23 display: block;
24 font-weight: normal;
25 }
26 blockquote pre code {
27 background: #f1f1f1;
28 }
29 dd p:first-of-type {
30 margin-block-start: 0em;
31 }
32 </style>
33 </head><body>
34 <h2 id="NAME">NAME<a href="#NAME" class="tgt"></a></h2>
35 <p>rsync-ssl -&#8288; a helper script for connecting to an ssl rsync daemon</p>
36 <h2 id="SYNOPSIS">SYNOPSIS<a href="#SYNOPSIS" class="tgt"></a></h2>
37 <pre><code>rsync-ssl [--type=SSL_TYPE] RSYNC_ARGS
38 </code></pre>
39 <p>The online version of this manpage (that includes cross-linking of topics)
40 is available at <a href="https://download.samba.org/pub/rsync/rsync-ssl.1">https://download.samba.org/pub/rsync/rsync-ssl.1</a>.</p>
41 <h2 id="DESCRIPTION">DESCRIPTION<a href="#DESCRIPTION" class="tgt"></a></h2>
42 <p>The rsync-ssl script helps you to run an rsync copy to/from an rsync daemon
43 that requires ssl connections.</p>
44 <p>The script requires that you specify an rsync-daemon arg in the style of either
45 <code>hostname::</code> (with 2 colons) or <code>rsync://hostname/</code>. The default port used for
46 connecting is 874 (one higher than the normal 873) unless overridden in the
47 environment. You can specify an overriding port via <code>--port</code> or by including
48 it in the normal spot in the URL format, though both of those require your
49 rsync version to be at least 3.2.0.</p>
50 <h2 id="OPTIONS">OPTIONS<a href="#OPTIONS" class="tgt"></a></h2>
51 <p>If the <strong>first</strong> arg is a <code>--type=SSL_TYPE</code> option, the script will only use
52 that particular program to open an ssl connection instead of trying to find an
53 openssl or stunnel executable via a simple heuristic (assuming that the
54 <code>RSYNC_SSL_TYPE</code> environment variable is not set as well&nbsp;-&#8288;-&#8288; see below). This
55 option must specify one of <code>openssl</code> or <code>stunnel</code>. The equal sign is
56 required for this particular option.</p>
57 <p>All the other options are passed through to the rsync command, so consult the
58 <strong>rsync</strong>(1) manpage for more information on how it works.</p>
59 <h2 id="ENVIRONMENT_VARIABLES">ENVIRONMENT VARIABLES<a href="#ENVIRONMENT_VARIABLES" class="tgt"></a></h2>
60 <p>The ssl helper scripts are affected by the following environment variables:</p>
61 <dl>
62
63 <dt id="RSYNC_SSL_TYPE"><code>RSYNC_SSL_TYPE</code><a href="#RSYNC_SSL_TYPE" class="tgt"></a></dt><dd>
64 <p>Specifies the program type that should be used to open the ssl connection.
65 It must be one of <code>openssl</code> or <code>stunnel</code>. The <code>--type=SSL_TYPE</code> option
66 overrides this, when specified.</p>
67 </dd>
68
69 <dt id="RSYNC_SSL_PORT"><code>RSYNC_SSL_PORT</code><a href="#RSYNC_SSL_PORT" class="tgt"></a></dt><dd>
70 <p>If specified, the value is the port number that is used as the default when
71 the user does not specify a port in their rsync command. When not
72 specified, the default port number is 874. (Note that older rsync versions
73 (prior to 3.2.0) did not communicate an overriding port number value to the
74 helper script.)</p>
75 </dd>
76
77 <dt id="RSYNC_SSL_CERT"><code>RSYNC_SSL_CERT</code><a href="#RSYNC_SSL_CERT" class="tgt"></a></dt><dd>
78 <p>If specified, the value is a filename that contains a certificate to use
79 for the connection.</p>
80 </dd>
81
82 <dt id="RSYNC_SSL_KEY"><code>RSYNC_SSL_KEY</code><a href="#RSYNC_SSL_KEY" class="tgt"></a></dt><dd>
83 <p>If specified, the value is a filename that contains a key for the provided
84 certificate to use for the connection.</p>
85 </dd>
86
87 <dt id="RSYNC_SSL_CA_CERT"><code>RSYNC_SSL_CA_CERT</code><a href="#RSYNC_SSL_CA_CERT" class="tgt"></a></dt><dd>
88 <p>If specified, the value is a filename that contains a certificate authority
89 certificate that is used to validate the connection.</p>
90 </dd>
91
92 <dt id="RSYNC_SSL_OPENSSL"><code>RSYNC_SSL_OPENSSL</code><a href="#RSYNC_SSL_OPENSSL" class="tgt"></a></dt><dd>
93 <p>Specifies the openssl executable to run when the connection type is set to
94 openssl. If unspecified, the $PATH is searched for &quot;openssl&quot;.</p>
95 </dd>
96
97 <dt id="RSYNC_SSL_GNUTLS"><code>RSYNC_SSL_GNUTLS</code><a href="#RSYNC_SSL_GNUTLS" class="tgt"></a></dt><dd>
98 <p>Specifies the gnutls-cli executable to run when the connection type is set
99 to gnutls. If unspecified, the $PATH is searched for &quot;gnutls-cli&quot;.</p>
100 </dd>
101
102 <dt id="RSYNC_SSL_STUNNEL"><code>RSYNC_SSL_STUNNEL</code><a href="#RSYNC_SSL_STUNNEL" class="tgt"></a></dt><dd>
103 <p>Specifies the stunnel executable to run when the connection type is set to
104 stunnel. If unspecified, the $PATH is searched first for &quot;stunnel4&quot; and
105 then for &quot;stunnel&quot;.</p>
106 </dd>
107 </dl>
108 <h2 id="EXAMPLES">EXAMPLES<a href="#EXAMPLES" class="tgt"></a></h2>
109 <blockquote>
110 <pre><code>rsync-ssl -aiv example.com::mod/ dest
111 </code></pre>
112 </blockquote>
113 <blockquote>
114 <pre><code>rsync-ssl --type=openssl -aiv example.com::mod/ dest
115 </code></pre>
116 </blockquote>
117 <blockquote>
118 <pre><code>rsync-ssl -aiv --port 9874 example.com::mod/ dest
119 </code></pre>
120 </blockquote>
121 <blockquote>
122 <pre><code>rsync-ssl -aiv rsync://example.com:9874/mod/ dest
123 </code></pre>
124 </blockquote>
125 <h2 id="THE_SERVER_SIDE">THE SERVER SIDE<a href="#THE_SERVER_SIDE" class="tgt"></a></h2>
126 <p>For help setting up an SSL/TLS supporting rsync, see the <a href="rsyncd.conf.5#SSL_TLS_Daemon_Setup">instructions in
127 rsyncd.conf</a>.</p>
128 <h2 id="SEE_ALSO">SEE ALSO<a href="#SEE_ALSO" class="tgt"></a></h2>
129 <p><a href="rsync.1"><strong>rsync</strong>(1)</a>, <a href="rsyncd.conf.5"><strong>rsyncd.conf</strong>(5)</a></p>
130 <h2 id="CAVEATS">CAVEATS<a href="#CAVEATS" class="tgt"></a></h2>
131 <p>Note that using an stunnel connection requires at least version 4 of stunnel,
132 which should be the case on modern systems. Also, it does not verify a
133 connection against the CA certificate collection, so it only encrypts the
134 connection without any cert validation unless you have specified the
135 certificate environment options.</p>
136 <p>This script also supports a <code>--type=gnutls</code> option, but at the time of this
137 release the gnutls-cli command was dropping output, making it unusable. If
138 that bug has been fixed in your version, feel free to put gnutls into an
139 exported RSYNC_SSL_TYPE environment variable to make its use the default.</p>
140 <h2 id="BUGS">BUGS<a href="#BUGS" class="tgt"></a></h2>
141 <p>Please report bugs! See the web site at <a href="https://rsync.samba.org/">https://rsync.samba.org/</a>.</p>
142 <h2 id="VERSION">VERSION<a href="#VERSION" class="tgt"></a></h2>
143 <p>This manpage is current for version 3.4.4 of rsync.</p>
144 <h2 id="CREDITS">CREDITS<a href="#CREDITS" class="tgt"></a></h2>
145 <p>Rsync is distributed under the GNU General Public License. See the file
146 <a href="COPYING">COPYING</a> for details.</p>
147 <p>A web site is available at <a href="https://rsync.samba.org/">https://rsync.samba.org/</a>. The site includes an
148 FAQ-O-Matic which may cover questions unanswered by this manual page.</p>
149 <h2 id="AUTHOR">AUTHOR<a href="#AUTHOR" class="tgt"></a></h2>
150 <p>This manpage was written by Wayne Davison.</p>
151 <p>Mailing lists for support and development are available at
152 <a href="https://lists.samba.org/">https://lists.samba.org/</a>.</p>
153 <div style="float: right"><p><i>8 Jun 2026</i></p></div>
154 </body></html>