[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5ab6e72] | 7 | <!ENTITY rsync-download-http "http://rsync.samba.org/ftp/rsync/rsync-&rsync-version;.tar.gz">
|
---|
| 8 | <!ENTITY rsync-download-ftp "ftp://ftp.samba.org/pub/rsync/rsync-&rsync-version;.tar.gz">
|
---|
| 9 | <!ENTITY rsync-md5sum "2beb30caafa69a01182e71c528fb0393">
|
---|
| 10 | <!ENTITY rsync-size "583 KB">
|
---|
| 11 | <!ENTITY rsync-buildsize "4.8 MB">
|
---|
| 12 | <!ENTITY rsync-time "0.17 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 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&rsync-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&rsync-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &rsync-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &rsync-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &rsync-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &rsync-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <bridgehead renderas="sect3">rsync Dependencies</bridgehead>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 61 | <para><xref linkend="popt"/></para>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2 role="installation">
|
---|
| 66 | <title>Installation of rsync</title>
|
---|
| 67 |
|
---|
| 68 | <para>For security reasons, running the <application>rsync</application>
|
---|
| 69 | server as an unprivileged user and group is encouraged. If you intend to
|
---|
| 70 | run <command>rsync</command> as a daemon, create the
|
---|
| 71 | <systemitem class="username">rsyncd</systemitem> user and group
|
---|
| 72 | with the following commands:</para>
|
---|
| 73 |
|
---|
| 74 | <screen role="root"><userinput>groupadd rsyncd &&
|
---|
| 75 | useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd -s /bin/false rsyncd</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para>Install <application>rsync</application> by running the following
|
---|
| 78 | commands:</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[0931098] | 81 | make &&
|
---|
[5ab6e72] | 82 | make install</userinput></screen>
|
---|
[0931098] | 83 |
|
---|
[5ab6e72] | 84 | </sect2>
|
---|
[0931098] | 85 |
|
---|
[5ab6e72] | 86 | <sect2 role="configuration">
|
---|
| 87 | <title>Configuring rsync</title>
|
---|
[0931098] | 88 |
|
---|
[5ab6e72] | 89 | <sect3 id="rsync-config">
|
---|
| 90 | <title>Config Files</title>
|
---|
[0931098] | 91 |
|
---|
[5ab6e72] | 92 | <para><filename>/etc/rsyncd.conf</filename></para>
|
---|
[0931098] | 93 |
|
---|
[5ab6e72] | 94 | <indexterm zone="rsync rsync-config">
|
---|
| 95 | <primary sortas="e-etc-rsyncd.conf">/etc/rsyncd.conf</primary>
|
---|
| 96 | </indexterm>
|
---|
| 97 |
|
---|
| 98 | </sect3>
|
---|
| 99 |
|
---|
| 100 | <sect3>
|
---|
| 101 | <title>Configuration Information</title>
|
---|
| 102 |
|
---|
| 103 | <para>This is a simple download-only configuration. See the rsyncd
|
---|
| 104 | man-page for additional options (i.e., user authentication).</para>
|
---|
| 105 |
|
---|
| 106 | <screen role="root"><userinput>cat > /etc/rsyncd.conf << "EOF"
|
---|
| 107 | <literal># This is a basic rsync configuration file
|
---|
[0931098] | 108 | # It exports a single module without user authentication.
|
---|
| 109 |
|
---|
| 110 | motd file = /home/rsync/welcome.msg
|
---|
| 111 | use chroot = yes
|
---|
| 112 |
|
---|
| 113 | [localhost]
|
---|
| 114 | path = /home/rsync
|
---|
| 115 | comment = Default rsync module
|
---|
| 116 | read only = yes
|
---|
| 117 | list = yes
|
---|
| 118 | uid = rsyncd
|
---|
| 119 | gid = rsyncd
|
---|
[5ab6e72] | 120 | </literal>
|
---|
| 121 | EOF</userinput></screen>
|
---|
[0931098] | 122 |
|
---|
[5ab6e72] | 123 | </sect3>
|
---|
[0931098] | 124 |
|
---|
[5ab6e72] | 125 | <sect3 id="rsync-init">
|
---|
| 126 | <title>Boot Script</title>
|
---|
[0931098] | 127 |
|
---|
[5ab6e72] | 128 | <para>Note that you only want to start the
|
---|
| 129 | <application>rsync</application> server if you want to provide a
|
---|
| 130 | <application>rsync</application> archive on your local machine.
|
---|
| 131 | You don't need this script to run the
|
---|
| 132 | <application>rsync</application> client.</para>
|
---|
[fce1d8e] | 133 |
|
---|
[5ab6e72] | 134 | <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
|
---|
| 135 | script included in the
|
---|
| 136 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[0931098] | 137 |
|
---|
[5ab6e72] | 138 | <screen role="root"><userinput>make install-rsyncd</userinput></screen>
|
---|
[0931098] | 139 |
|
---|
[5ab6e72] | 140 | </sect3>
|
---|
[0931098] | 141 |
|
---|
[5ab6e72] | 142 | </sect2>
|
---|
[0931098] | 143 |
|
---|
[5ab6e72] | 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
[0931098] | 146 |
|
---|
[5ab6e72] | 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Program</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
[0931098] | 151 |
|
---|
[5ab6e72] | 152 | <seglistitem>
|
---|
| 153 | <seg>rsync</seg>
|
---|
| 154 | <seg>None</seg>
|
---|
| 155 | <seg>Not determined at this time</seg>
|
---|
| 156 | </seglistitem>
|
---|
| 157 | </segmentedlist>
|
---|
[0931098] | 158 |
|
---|
[5ab6e72] | 159 | <variablelist>
|
---|
| 160 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 161 | <?dbfo list-presentation="list"?>
|
---|
| 162 | <?dbhtml list-presentation="table"?>
|
---|
[0931098] | 163 |
|
---|
[5ab6e72] | 164 | <varlistentry id="rsync-prog">
|
---|
| 165 | <term><command>rsync</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>is a replacement for <command>rcp</command> (and
|
---|
| 168 | <command>scp</command>) that has many more features. It uses the
|
---|
| 169 | "rsync algorithm" which provides a very fast method of syncing
|
---|
| 170 | remote files. It does this by sending just the differences in the
|
---|
| 171 | files across the link, without requiring that both sets of files
|
---|
| 172 | are present at one end of the link beforehand.</para>
|
---|
| 173 | <indexterm zone="rsync rsync-prog">
|
---|
| 174 | <primary sortas="b-rsync">rsync</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
[0931098] | 178 |
|
---|
[5ab6e72] | 179 | </variablelist>
|
---|
[46cef72] | 180 |
|
---|
[5ab6e72] | 181 | </sect2>
|
---|
[46cef72] | 182 |
|
---|
[5ab6e72] | 183 | </sect1>
|
---|