2004-06-13 13:38:30 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 13:38:30 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<!ENTITY rsync-download-http "http://rsync.samba.org/ftp/rsync/rsync-&rsync-version;.tar.gz">
|
|
|
|
<!ENTITY rsync-download-ftp "ftp://ftp.samba.org/pub/rsync/rsync-&rsync-version;.tar.gz">
|
|
|
|
<!ENTITY rsync-md5sum "2beb30caafa69a01182e71c528fb0393">
|
|
|
|
<!ENTITY rsync-size "583 KB">
|
|
|
|
<!ENTITY rsync-buildsize "4.8 MB">
|
|
|
|
<!ENTITY rsync-time "0.17 SBU">
|
2004-06-13 13:38:30 +08:00
|
|
|
]>
|
|
|
|
|
2003-08-31 22:39:34 +08:00
|
|
|
<sect1 id="rsync" xreflabel="rsync-&rsync-version;">
|
2005-05-19 04:36:07 +08:00
|
|
|
<?dbhtml filename="rsync.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>rsync-&rsync-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="rsync">
|
|
|
|
<primary sortas="a-rsync">rsync</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to rsync</title>
|
|
|
|
|
|
|
|
<para>The <application>rsync</application> package contains the
|
|
|
|
<command>rsync</command> utility. This is useful for synchronizing large
|
|
|
|
file archives over a network.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&rsync-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&rsync-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &rsync-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &rsync-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &rsync-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &rsync-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">rsync Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para><xref linkend="popt"/></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of rsync</title>
|
|
|
|
|
|
|
|
<para>For security reasons, running the <application>rsync</application>
|
|
|
|
server as an unprivileged user and group is encouraged. If you intend to
|
|
|
|
run <command>rsync</command> as a daemon, create the
|
|
|
|
<systemitem class="username">rsyncd</systemitem> user and group
|
|
|
|
with the following commands:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>groupadd rsyncd &&
|
|
|
|
useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd -s /bin/false rsyncd</userinput></screen>
|
|
|
|
|
|
|
|
<para>Install <application>rsync</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
2004-06-13 13:38:30 +08:00
|
|
|
make &&
|
2005-05-19 04:36:07 +08:00
|
|
|
make install</userinput></screen>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</sect2>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring rsync</title>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<sect3 id="rsync-config">
|
|
|
|
<title>Config Files</title>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<para><filename>/etc/rsyncd.conf</filename></para>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<indexterm zone="rsync rsync-config">
|
|
|
|
<primary sortas="e-etc-rsyncd.conf">/etc/rsyncd.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>This is a simple download-only configuration. See the rsyncd
|
|
|
|
man-page for additional options (i.e., user authentication).</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /etc/rsyncd.conf << "EOF"
|
|
|
|
<literal># This is a basic rsync configuration file
|
2004-06-13 13:38:30 +08:00
|
|
|
# It exports a single module without user authentication.
|
|
|
|
|
|
|
|
motd file = /home/rsync/welcome.msg
|
|
|
|
use chroot = yes
|
|
|
|
|
|
|
|
[localhost]
|
|
|
|
path = /home/rsync
|
|
|
|
comment = Default rsync module
|
|
|
|
read only = yes
|
|
|
|
list = yes
|
|
|
|
uid = rsyncd
|
|
|
|
gid = rsyncd
|
2005-05-19 04:36:07 +08:00
|
|
|
</literal>
|
|
|
|
EOF</userinput></screen>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</sect3>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<sect3 id="rsync-init">
|
|
|
|
<title>Boot Script</title>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<para>Note that you only want to start the
|
|
|
|
<application>rsync</application> server if you want to provide a
|
|
|
|
<application>rsync</application> archive on your local machine.
|
|
|
|
You don't need this script to run the
|
|
|
|
<application>rsync</application> client.</para>
|
2004-12-30 12:13:25 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
|
|
|
|
script included in the
|
|
|
|
<xref linkend="intro-important-bootscripts"/> package.</para>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<screen role="root"><userinput>make install-rsyncd</userinput></screen>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</sect3>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</sect2>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<seglistitem>
|
|
|
|
<seg>rsync</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>Not determined at this time</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
<varlistentry id="rsync-prog">
|
|
|
|
<term><command>rsync</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a replacement for <command>rcp</command> (and
|
|
|
|
<command>scp</command>) that has many more features. It uses the
|
|
|
|
"rsync algorithm" which provides a very fast method of syncing
|
|
|
|
remote files. It does this by sending just the differences in the
|
|
|
|
files across the link, without requiring that both sets of files
|
|
|
|
are present at one end of the link beforehand.</para>
|
|
|
|
<indexterm zone="rsync rsync-prog">
|
|
|
|
<primary sortas="b-rsync">rsync</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</variablelist>
|
2003-08-31 22:39:34 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</sect2>
|
2003-08-31 22:39:34 +08:00
|
|
|
|
2005-05-19 04:36:07 +08:00
|
|
|
</sect1>
|