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