[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">
|
---|
| 8 | <!ENTITY rsync-download-ftp "ftp://gd.tuwien.ac.at/utils/admin-tools/rsync/rsync-&rsync-version;.tar.gz">
|
---|
| 9 | <!ENTITY rsyncd-size "504 KB">
|
---|
| 10 | <!ENTITY rsync-buildsize "6.5 MB">
|
---|
| 11 | <!ENTITY rsyncd-time "0.20 SBU">
|
---|
| 12 |
|
---|
| 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"?>
|
---|
[46cef72] | 21 | <title>rsync-&rsync-version;</title>
|
---|
| 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'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink url="&rsync-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP): <ulink url="&rsync-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &rsyncd-size;</para></listitem>
|
---|
| 35 | <listitem><para>Estimated Disk space required: &rsync-buildsize;</para></listitem>
|
---|
| 36 | <listitem><para>Estimated build time: &rsyncd-time;</para></listitem></itemizedlist>
|
---|
| 37 | </sect3>
|
---|
| 38 |
|
---|
| 39 | <sect3><title><application>rsync</application> dependencies</title>
|
---|
| 40 | <sect4><title>Optional</title>
|
---|
| 41 | <para>
|
---|
| 42 | <xref linkend="popt"/>
|
---|
| 43 | </para></sect4>
|
---|
| 44 | </sect3>
|
---|
| 45 |
|
---|
| 46 | </sect2>
|
---|
| 47 |
|
---|
| 48 | <sect2>
|
---|
| 49 | <title>Installation of <application>rsync</application></title>
|
---|
| 50 |
|
---|
| 51 | <para>For security reasons, running the <application>rsync</application> server as
|
---|
| 52 | an unprivileged user and group is encouraged. Create the rsyncd user
|
---|
| 53 | and group with the following commands:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput><command>groupadd rsyncd &&
|
---|
| 56 | useradd -c rsyncd -d /home/rsync -g rsyncd -s /bin/false rsyncd</command>
|
---|
| 57 | </userinput></screen>
|
---|
| 58 |
|
---|
| 59 | <para>Install <application>rsync</application> by running the following
|
---|
| 60 | commands:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput><command>./configure --prefix=/usr &&
|
---|
| 63 | make &&
|
---|
| 64 | make install </command></userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2>
|
---|
| 69 | <title>Configuring <application>rsync</application></title>
|
---|
| 70 |
|
---|
| 71 | <sect3><title>Config files</title>
|
---|
| 72 | <para><filename>/etc/rsyncd.conf</filename></para>
|
---|
| 73 | </sect3>
|
---|
| 74 |
|
---|
| 75 | <sect3><title>Configuration Information</title>
|
---|
| 76 |
|
---|
| 77 | <para>This is a simple download-only configuration. See the rsyncd man-page for
|
---|
| 78 | additional options (i.e., user authentication).</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput><command>cat > /etc/rsyncd.conf << "EOF"</command>
|
---|
| 81 | # This is a basic rsync configuration file
|
---|
| 82 | # It exports a single module without user authentication.
|
---|
| 83 |
|
---|
| 84 | motd file = /home/rsync/welcome.msg
|
---|
| 85 | use chroot = yes
|
---|
| 86 |
|
---|
| 87 | [localhost]
|
---|
| 88 | path = /home/rsync
|
---|
| 89 | comment = Default rsync module
|
---|
| 90 | read only = yes
|
---|
| 91 | list = yes
|
---|
| 92 | uid = rsyncd
|
---|
| 93 | gid = rsyncd
|
---|
| 94 |
|
---|
| 95 | <command>EOF</command></userinput></screen>
|
---|
| 96 | </sect3>
|
---|
| 97 |
|
---|
| 98 | <sect3><title>rsyncd init.d script</title>
|
---|
| 99 |
|
---|
| 100 | <para>Note that you only want to start the <application>rsync</application>
|
---|
| 101 | server if you want to provide a <application>rsync</application> archive on
|
---|
| 102 | your machine. The <application>rsync</application> client doesn't need this
|
---|
| 103 | script to be used.</para>
|
---|
| 104 |
|
---|
| 105 | <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename>
|
---|
| 106 | init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 107 |
|
---|
| 108 | <screen><userinput><command>make install-rsyncd</command></userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect3>
|
---|
| 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2>
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
| 117 | <para>The <application>rsync</application> package contains <command>rsync</command>.</para>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2><title>Description</title>
|
---|
| 122 |
|
---|
| 123 | <sect3><title>rsync</title>
|
---|
| 124 | <para><application>rsync</application> is a replacement for <command>rcp
|
---|
| 125 | </command> (and <command>scp</command>) that has many more features. It
|
---|
| 126 | uses the "rsync algorithm" which provides a very fast method of syncing remote
|
---|
| 127 | files. It does this by sending just the differences in the files across the
|
---|
| 128 | link, without requiring that both sets of files are present at one end
|
---|
| 129 | of the link beforehand.</para></sect3>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
[46cef72] | 132 |
|
---|
| 133 | </sect1>
|
---|
| 134 |
|
---|