[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[10ea80a9] | 7 | <!ENTITY rsync-download-http "http://samba.org/ftp/rsync/src/rsync-&rsync-version;.tar.gz">
|
---|
| 8 | <!ENTITY rsync-download-ftp "ftp://ftp.samba.org/pub/rsync/src/rsync-&rsync-version;.tar.gz">
|
---|
[20e6cade] | 9 | <!ENTITY rsync-md5sum "5ee72266fe2c1822333c407e1761b92b">
|
---|
| 10 | <!ENTITY rsync-size "780 KB">
|
---|
[b5b51a2] | 11 | <!ENTITY rsync-buildsize "35 MB (includes installing all documentation)">
|
---|
[20e6cade] | 12 | <!ENTITY rsync-time "0.4 SBU">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[46cef72] | 15 | <sect1 id="rsync" xreflabel="rsync-&rsync-version;">
|
---|
[5ab6e72] | 16 | <?dbhtml filename="rsync.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>rsync-&rsync-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="rsync">
|
---|
| 26 | <primary sortas="a-rsync">rsync</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to rsync</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>rsync</application> package contains the
|
---|
| 33 | <command>rsync</command> utility. This is useful for synchronizing large
|
---|
| 34 | file archives over a network.</para>
|
---|
| 35 |
|
---|
[5d9021ea] | 36 | &lfs74_checked;
|
---|
[20e6cade] | 37 |
|
---|
[5ab6e72] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&rsync-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&rsync-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &rsync-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &rsync-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &rsync-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &rsync-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">rsync Dependencies</bridgehead>
|
---|
| 61 |
|
---|
[b802f15] | 62 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 63 | <para role="recommended">
|
---|
| 64 | <xref linkend="popt"/>
|
---|
| 65 | </para>
|
---|
| 66 |
|
---|
[5ab6e72] | 67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b802f15] | 68 | <para role="optional">
|
---|
| 69 | <xref linkend="attr"/> and
|
---|
| 70 | <xref linkend="acl"/>
|
---|
| 71 | </para>
|
---|
[5ab6e72] | 72 |
|
---|
[3cb0c57] | 73 | <para condition="html" role="usernotes">User Notes:
|
---|
| 74 | <ulink url="&blfs-wiki;/rsync"/></para>
|
---|
| 75 |
|
---|
[5ab6e72] | 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2 role="installation">
|
---|
| 79 | <title>Installation of rsync</title>
|
---|
| 80 |
|
---|
| 81 | <para>For security reasons, running the <application>rsync</application>
|
---|
| 82 | server as an unprivileged user and group is encouraged. If you intend to
|
---|
| 83 | run <command>rsync</command> as a daemon, create the
|
---|
| 84 | <systemitem class="username">rsyncd</systemitem> user and group
|
---|
[bccbdaea] | 85 | with the following commands issued by the
|
---|
[fdf798a6] | 86 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[5ab6e72] | 87 |
|
---|
[fdf798a6] | 88 | <screen role="root"><userinput>groupadd -g 48 rsyncd &&
|
---|
| 89 | useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd \
|
---|
| 90 | -s /bin/false -u 48 rsyncd</userinput></screen>
|
---|
[5ab6e72] | 91 |
|
---|
| 92 | <para>Install <application>rsync</application> by running the following
|
---|
| 93 | commands:</para>
|
---|
| 94 |
|
---|
| 95 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[fdf798a6] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
[9b7fb82] | 98 | <para>If you have <xref linkend="doxygen"/> installed and wish to
|
---|
[aca42dac] | 99 | build HTML API documentation, issue <command>doxygen</command>.</para>
|
---|
[9b7fb82] | 100 |
|
---|
| 101 | <para>If you have <xref linkend="docbook-utils"/> installed and wish to
|
---|
| 102 | build the user documentation, issue any or all of the following
|
---|
| 103 | commands:</para>
|
---|
[fdf798a6] | 104 |
|
---|
[aca42dac] | 105 | <screen><userinput>pushd doc &&
|
---|
[9b7fb82] | 106 | docbook2pdf rsync.sgml &&
|
---|
| 107 | docbook2ps rsync.sgml &&
|
---|
| 108 | docbook2dvi rsync.sgml &&
|
---|
| 109 | docbook2txt rsync.sgml &&
|
---|
| 110 | docbook2html --nochunks rsync.sgml &&
|
---|
[aca42dac] | 111 | popd</userinput></screen>
|
---|
[fdf798a6] | 112 |
|
---|
| 113 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 114 |
|
---|
| 115 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 116 |
|
---|
| 117 | <screen role='root'><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
[9b7fb82] | 119 | <para>If you built the documentation, install it using the following
|
---|
[fdf798a6] | 120 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 121 |
|
---|
[9b7fb82] | 122 | <screen role='root'><userinput>install -v -m755 -d /usr/share/doc/rsync-&rsync-version;/api &&
|
---|
| 123 | install -v -m644 dox/html/* /usr/share/doc/rsync-&rsync-version;/api &&
|
---|
| 124 | install -v -m644 doc/rsync.* /usr/share/doc/rsync-&rsync-version;</userinput></screen>
|
---|
[0931098] | 125 |
|
---|
[5ab6e72] | 126 | </sect2>
|
---|
[0931098] | 127 |
|
---|
[5ab6e72] | 128 | <sect2 role="configuration">
|
---|
| 129 | <title>Configuring rsync</title>
|
---|
[0931098] | 130 |
|
---|
[5ab6e72] | 131 | <sect3 id="rsync-config">
|
---|
| 132 | <title>Config Files</title>
|
---|
[0931098] | 133 |
|
---|
[5ab6e72] | 134 | <para><filename>/etc/rsyncd.conf</filename></para>
|
---|
[0931098] | 135 |
|
---|
[5ab6e72] | 136 | <indexterm zone="rsync rsync-config">
|
---|
| 137 | <primary sortas="e-etc-rsyncd.conf">/etc/rsyncd.conf</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 |
|
---|
| 140 | </sect3>
|
---|
| 141 |
|
---|
| 142 | <sect3>
|
---|
| 143 | <title>Configuration Information</title>
|
---|
| 144 |
|
---|
[bccbdaea] | 145 | <para>For client access to remote files, you may need to install the
|
---|
[fdf798a6] | 146 | <xref linkend="openssh"/> package to connect to the remote server.</para>
|
---|
| 147 |
|
---|
[bccbdaea] | 148 | <para>This is a simple download-only configuration to set up running
|
---|
[fdf798a6] | 149 | <command>rsync</command> as a server. See the rsyncd.conf(5)
|
---|
[5ab6e72] | 150 | man-page for additional options (i.e., user authentication).</para>
|
---|
| 151 |
|
---|
| 152 | <screen role="root"><userinput>cat > /etc/rsyncd.conf << "EOF"
|
---|
| 153 | <literal># This is a basic rsync configuration file
|
---|
[0931098] | 154 | # It exports a single module without user authentication.
|
---|
| 155 |
|
---|
| 156 | motd file = /home/rsync/welcome.msg
|
---|
| 157 | use chroot = yes
|
---|
| 158 |
|
---|
| 159 | [localhost]
|
---|
| 160 | path = /home/rsync
|
---|
| 161 | comment = Default rsync module
|
---|
| 162 | read only = yes
|
---|
| 163 | list = yes
|
---|
| 164 | uid = rsyncd
|
---|
| 165 | gid = rsyncd
|
---|
[5ab6e72] | 166 | </literal>
|
---|
| 167 | EOF</userinput></screen>
|
---|
[0931098] | 168 |
|
---|
[fdf798a6] | 169 | <para>You can find additional configuration information and general
|
---|
| 170 | documentation about <command>rsync</command> at
|
---|
| 171 | <ulink url="http://rsync.samba.org/documentation.html"/>.</para>
|
---|
[bccbdaea] | 172 |
|
---|
[5ab6e72] | 173 | </sect3>
|
---|
[0931098] | 174 |
|
---|
[fdf798a6] | 175 | <sect3 id="rsync-init">
|
---|
[5ab6e72] | 176 | <title>Boot Script</title>
|
---|
[0931098] | 177 |
|
---|
[5ab6e72] | 178 | <para>Note that you only want to start the
|
---|
[fdf798a6] | 179 | <application>rsync</application> server if you want to provide an
|
---|
[5ab6e72] | 180 | <application>rsync</application> archive on your local machine.
|
---|
| 181 | You don't need this script to run the
|
---|
| 182 | <application>rsync</application> client.</para>
|
---|
[fce1d8e] | 183 |
|
---|
[5ab6e72] | 184 | <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
|
---|
| 185 | script included in the
|
---|
[5254d12] | 186 | <xref linkend="bootscripts"/> package.</para>
|
---|
[0931098] | 187 |
|
---|
[5ab6e72] | 188 | <screen role="root"><userinput>make install-rsyncd</userinput></screen>
|
---|
[0931098] | 189 |
|
---|
[5ab6e72] | 190 | </sect3>
|
---|
[0931098] | 191 |
|
---|
[5ab6e72] | 192 | </sect2>
|
---|
[0931098] | 193 |
|
---|
[5ab6e72] | 194 | <sect2 role="content">
|
---|
| 195 | <title>Contents</title>
|
---|
[0931098] | 196 |
|
---|
[5ab6e72] | 197 | <segmentedlist>
|
---|
| 198 | <segtitle>Installed Program</segtitle>
|
---|
| 199 | <segtitle>Installed Libraries</segtitle>
|
---|
| 200 | <segtitle>Installed Directories</segtitle>
|
---|
[0931098] | 201 |
|
---|
[5ab6e72] | 202 | <seglistitem>
|
---|
| 203 | <seg>rsync</seg>
|
---|
| 204 | <seg>None</seg>
|
---|
[fdf798a6] | 205 | <seg>Optionally, /usr/share/doc/rsync-&rsync-version;</seg>
|
---|
[5ab6e72] | 206 | </seglistitem>
|
---|
| 207 | </segmentedlist>
|
---|
[0931098] | 208 |
|
---|
[5ab6e72] | 209 | <variablelist>
|
---|
| 210 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 211 | <?dbfo list-presentation="list"?>
|
---|
| 212 | <?dbhtml list-presentation="table"?>
|
---|
[0931098] | 213 |
|
---|
[5ab6e72] | 214 | <varlistentry id="rsync-prog">
|
---|
| 215 | <term><command>rsync</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>is a replacement for <command>rcp</command> (and
|
---|
| 218 | <command>scp</command>) that has many more features. It uses the
|
---|
[fdf798a6] | 219 | <quote>rsync algorithm</quote> which provides a very fast method of
|
---|
| 220 | syncing remote files. It does this by sending just the differences
|
---|
| 221 | in the files across the link, without requiring that both sets of
|
---|
| 222 | files are present at one end of the link beforehand.</para>
|
---|
[5ab6e72] | 223 | <indexterm zone="rsync rsync-prog">
|
---|
| 224 | <primary sortas="b-rsync">rsync</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[0931098] | 228 |
|
---|
[5ab6e72] | 229 | </variablelist>
|
---|
[46cef72] | 230 |
|
---|
[5ab6e72] | 231 | </sect2>
|
---|
[46cef72] | 232 |
|
---|
[5ab6e72] | 233 | </sect1>
|
---|