[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY rsync-download-http "http://rsync.samba.org/ftp/rsync/rsync-&rsync-version;.tar.gz">
|
---|
[fce1d8e] | 8 | <!ENTITY rsync-download-ftp "ftp://ftp.samba.org/pub/rsync/rsync-&rsync-version;.tar.gz">
|
---|
| 9 | <!ENTITY rsyncd-size "583 KB">
|
---|
| 10 | <!ENTITY rsync-buildsize "4.8 MB">
|
---|
| 11 | <!ENTITY rsyncd-time "0.17 SBU">
|
---|
[0931098] | 12 | ]>
|
---|
| 13 |
|
---|
[46cef72] | 14 | <sect1 id="rsync" xreflabel="rsync-&rsync-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[00bb024c] | 19 | <?dbhtml filename="rsync.html"?>
|
---|
[fce1d8e] | 20 | <title><application>rsync</application>-&rsync-version;</title>
|
---|
[46cef72] | 21 |
|
---|
[0931098] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>rsync</application></title>
|
---|
| 24 |
|
---|
| 25 | <para>The <application>rsync</application> package contains the
|
---|
| 26 | <command>rsync</command> utility. This is useful for synchronizing large file
|
---|
| 27 | archives over a network.</para>
|
---|
| 28 |
|
---|
| 29 | <sect3><title>Package information</title>
|
---|
| 30 | <itemizedlist spacing='compact'>
|
---|
[fce1d8e] | 31 | <listitem><para>Download (HTTP):
|
---|
| 32 | <ulink url="&rsync-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP):
|
---|
| 34 | <ulink url="&rsync-download-ftp;"/></para></listitem>
|
---|
[0931098] | 35 | <listitem><para>Download size: &rsyncd-size;</para></listitem>
|
---|
[bd23186f] | 36 | <listitem><para>Estimated disk space required:
|
---|
[fce1d8e] | 37 | &rsync-buildsize;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated build time:
|
---|
| 39 | &rsyncd-time;</para></listitem></itemizedlist>
|
---|
[0931098] | 40 | </sect3>
|
---|
| 41 |
|
---|
| 42 | <sect3><title><application>rsync</application> dependencies</title>
|
---|
| 43 | <sect4><title>Optional</title>
|
---|
[fce1d8e] | 44 | <para><xref linkend="popt"/></para>
|
---|
| 45 | </sect4>
|
---|
[0931098] | 46 | </sect3>
|
---|
| 47 |
|
---|
| 48 | </sect2>
|
---|
| 49 |
|
---|
| 50 | <sect2>
|
---|
| 51 | <title>Installation of <application>rsync</application></title>
|
---|
| 52 |
|
---|
[fce1d8e] | 53 | <para>For security reasons, running the <application>rsync</application>
|
---|
| 54 | server as an unprivileged user and group is encouraged. If you intend to
|
---|
| 55 | run <command>rsync</command> as a daemon, create the rsyncd user and group
|
---|
| 56 | with the following commands:</para>
|
---|
[0931098] | 57 |
|
---|
| 58 | <screen><userinput><command>groupadd rsyncd &&
|
---|
[fce1d8e] | 59 | useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd -s /bin/false rsyncd</command>
|
---|
[0931098] | 60 | </userinput></screen>
|
---|
| 61 |
|
---|
| 62 | <para>Install <application>rsync</application> by running the following
|
---|
| 63 | commands:</para>
|
---|
| 64 |
|
---|
| 65 | <screen><userinput><command>./configure --prefix=/usr &&
|
---|
| 66 | make &&
|
---|
| 67 | make install </command></userinput></screen>
|
---|
| 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2>
|
---|
| 72 | <title>Configuring <application>rsync</application></title>
|
---|
| 73 |
|
---|
| 74 | <sect3><title>Config files</title>
|
---|
| 75 | <para><filename>/etc/rsyncd.conf</filename></para>
|
---|
| 76 | </sect3>
|
---|
| 77 |
|
---|
| 78 | <sect3><title>Configuration Information</title>
|
---|
| 79 | <para>This is a simple download-only configuration. See the rsyncd man-page for
|
---|
| 80 | additional options (i.e., user authentication).</para>
|
---|
| 81 |
|
---|
| 82 | <screen><userinput><command>cat > /etc/rsyncd.conf << "EOF"</command>
|
---|
| 83 | # This is a basic rsync configuration file
|
---|
| 84 | # It exports a single module without user authentication.
|
---|
| 85 |
|
---|
| 86 | motd file = /home/rsync/welcome.msg
|
---|
| 87 | use chroot = yes
|
---|
| 88 |
|
---|
| 89 | [localhost]
|
---|
| 90 | path = /home/rsync
|
---|
| 91 | comment = Default rsync module
|
---|
| 92 | read only = yes
|
---|
| 93 | list = yes
|
---|
| 94 | uid = rsyncd
|
---|
| 95 | gid = rsyncd
|
---|
| 96 |
|
---|
| 97 | <command>EOF</command></userinput></screen>
|
---|
| 98 | </sect3>
|
---|
| 99 |
|
---|
| 100 | <sect3><title>rsyncd init.d script</title>
|
---|
| 101 |
|
---|
| 102 | <para>Note that you only want to start the <application>rsync</application>
|
---|
| 103 | server if you want to provide a <application>rsync</application> archive on
|
---|
[fce1d8e] | 104 | your local machine. You don't need this script to run the
|
---|
| 105 | <application>rsync</application> client.</para>
|
---|
| 106 |
|
---|
| 107 | <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init script
|
---|
| 108 | included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[0931098] | 109 |
|
---|
| 110 | <screen><userinput><command>make install-rsyncd</command></userinput></screen>
|
---|
| 111 |
|
---|
| 112 | </sect3>
|
---|
| 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2>
|
---|
| 117 | <title>Contents</title>
|
---|
| 118 |
|
---|
[fce1d8e] | 119 | <para>The <application>rsync</application> package contains
|
---|
| 120 | <command>rsync</command>.</para>
|
---|
[0931098] | 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2><title>Description</title>
|
---|
| 125 |
|
---|
| 126 | <sect3><title>rsync</title>
|
---|
[fce1d8e] | 127 | <para><application>rsync</application> is a replacement for
|
---|
| 128 | <command>rcp</command> (and <command>scp</command>) that has many more
|
---|
| 129 | features. It uses the "rsync algorithm" which provides a very fast method of
|
---|
| 130 | syncing remote files. It does this by sending just the differences in the
|
---|
| 131 | files across the link, without requiring that both sets of files are present
|
---|
| 132 | at one end of the link beforehand.</para></sect3>
|
---|
[0931098] | 133 |
|
---|
| 134 | </sect2>
|
---|
[46cef72] | 135 |
|
---|
| 136 | </sect1>
|
---|
| 137 |
|
---|