source: networking/netprogs/rsync.xml@ 58d0203

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 58d0203 was 04e3c200, checked in by Igor Živković <igor@…>, 11 years ago

update to rsync-3.1.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11906 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.9 KB
RevLine 
[0931098]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[0931098]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[10ea80a9]7 <!ENTITY rsync-download-http "http://samba.org/ftp/rsync/src/rsync-&rsync-version;.tar.gz">
8 <!ENTITY rsync-download-ftp "ftp://ftp.samba.org/pub/rsync/src/rsync-&rsync-version;.tar.gz">
[04e3c200]9 <!ENTITY rsync-md5sum "3be148772a33224771a8d4d2a028b132">
10 <!ENTITY rsync-size "864 KB">
11 <!ENTITY rsync-buildsize "9.4 MB">
12 <!ENTITY rsync-time "0.3 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
[5d9021ea]36 &lfs74_checked;
[20e6cade]37
[5ab6e72]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&rsync-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&rsync-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &rsync-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &rsync-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &rsync-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &rsync-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">rsync Dependencies</bridgehead>
61
[b802f15]62 <bridgehead renderas="sect4">Recommended</bridgehead>
63 <para role="recommended">
64 <xref linkend="popt"/>
65 </para>
66
[5ab6e72]67 <bridgehead renderas="sect4">Optional</bridgehead>
[b802f15]68 <para role="optional">
69 <xref linkend="attr"/> and
70 <xref linkend="acl"/>
71 </para>
[5ab6e72]72
[3cb0c57]73 <para condition="html" role="usernotes">User Notes:
74 <ulink url="&blfs-wiki;/rsync"/></para>
75
[5ab6e72]76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of rsync</title>
80
81 <para>For security reasons, running the <application>rsync</application>
82 server as an unprivileged user and group is encouraged. If you intend to
83 run <command>rsync</command> as a daemon, create the
84 <systemitem class="username">rsyncd</systemitem> user and group
[bccbdaea]85 with the following commands issued by the
[fdf798a6]86 <systemitem class="username">root</systemitem> user:</para>
[5ab6e72]87
[fdf798a6]88<screen role="root"><userinput>groupadd -g 48 rsyncd &amp;&amp;
89useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd \
90 -s /bin/false -u 48 rsyncd</userinput></screen>
[5ab6e72]91
92 <para>Install <application>rsync</application> by running the following
93 commands:</para>
94
[04e3c200]95<screen><userinput>./configure --prefix=/usr --without-included-zlib &amp;&amp;
[fdf798a6]96make</userinput></screen>
97
[9b7fb82]98 <para>If you have <xref linkend="doxygen"/> installed and wish to
[aca42dac]99 build HTML API documentation, issue <command>doxygen</command>.</para>
[9b7fb82]100
101 <para>If you have <xref linkend="docbook-utils"/> installed and wish to
102 build the user documentation, issue any or all of the following
103 commands:</para>
[fdf798a6]104
[aca42dac]105<screen><userinput>pushd doc &amp;&amp;
[9b7fb82]106docbook2pdf rsync.sgml &amp;&amp;
107docbook2ps rsync.sgml &amp;&amp;
108docbook2dvi rsync.sgml &amp;&amp;
109docbook2txt rsync.sgml &amp;&amp;
110docbook2html --nochunks rsync.sgml &amp;&amp;
[aca42dac]111popd</userinput></screen>
[fdf798a6]112
113 <para>To test the results, issue: <command>make check</command>.</para>
114
115 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
116
117<screen role='root'><userinput>make install</userinput></screen>
118
[9b7fb82]119 <para>If you built the documentation, install it using the following
[fdf798a6]120 commands as the <systemitem class="username">root</systemitem> user:</para>
121
[9b7fb82]122<screen role='root'><userinput>install -v -m755 -d /usr/share/doc/rsync-&rsync-version;/api &amp;&amp;
123install -v -m644 dox/html/* /usr/share/doc/rsync-&rsync-version;/api &amp;&amp;
124install -v -m644 doc/rsync.* /usr/share/doc/rsync-&rsync-version;</userinput></screen>
[0931098]125
[5ab6e72]126 </sect2>
[0931098]127
[04e3c200]128 <sect2 role="commands">
129 <title>Command Explanations</title>
130
131 <para>
132 <parameter>--without-included-zlib</parameter>: This switch enables
133 compilation with system-installed zlib library.
134 </para>
135
136 </sect2>
137
[5ab6e72]138 <sect2 role="configuration">
139 <title>Configuring rsync</title>
[0931098]140
[5ab6e72]141 <sect3 id="rsync-config">
142 <title>Config Files</title>
[0931098]143
[5ab6e72]144 <para><filename>/etc/rsyncd.conf</filename></para>
[0931098]145
[5ab6e72]146 <indexterm zone="rsync rsync-config">
147 <primary sortas="e-etc-rsyncd.conf">/etc/rsyncd.conf</primary>
148 </indexterm>
149
150 </sect3>
151
152 <sect3>
153 <title>Configuration Information</title>
154
[bccbdaea]155 <para>For client access to remote files, you may need to install the
[fdf798a6]156 <xref linkend="openssh"/> package to connect to the remote server.</para>
157
[bccbdaea]158 <para>This is a simple download-only configuration to set up running
[fdf798a6]159 <command>rsync</command> as a server. See the rsyncd.conf(5)
[5ab6e72]160 man-page for additional options (i.e., user authentication).</para>
161
162<screen role="root"><userinput>cat &gt; /etc/rsyncd.conf &lt;&lt; "EOF"
163<literal># This is a basic rsync configuration file
[0931098]164# It exports a single module without user authentication.
165
166motd file = /home/rsync/welcome.msg
167use chroot = yes
168
169[localhost]
170 path = /home/rsync
171 comment = Default rsync module
172 read only = yes
173 list = yes
174 uid = rsyncd
175 gid = rsyncd
[5ab6e72]176</literal>
177EOF</userinput></screen>
[0931098]178
[fdf798a6]179 <para>You can find additional configuration information and general
180 documentation about <command>rsync</command> at
181 <ulink url="http://rsync.samba.org/documentation.html"/>.</para>
[bccbdaea]182
[5ab6e72]183 </sect3>
[0931098]184
[fdf798a6]185 <sect3 id="rsync-init">
[5ab6e72]186 <title>Boot Script</title>
[0931098]187
[5ab6e72]188 <para>Note that you only want to start the
[fdf798a6]189 <application>rsync</application> server if you want to provide an
[5ab6e72]190 <application>rsync</application> archive on your local machine.
191 You don't need this script to run the
192 <application>rsync</application> client.</para>
[fce1d8e]193
[5ab6e72]194 <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
195 script included in the
[5254d12]196 <xref linkend="bootscripts"/> package.</para>
[0931098]197
[5ab6e72]198<screen role="root"><userinput>make install-rsyncd</userinput></screen>
[0931098]199
[5ab6e72]200 </sect3>
[0931098]201
[5ab6e72]202 </sect2>
[0931098]203
[5ab6e72]204 <sect2 role="content">
205 <title>Contents</title>
[0931098]206
[5ab6e72]207 <segmentedlist>
208 <segtitle>Installed Program</segtitle>
209 <segtitle>Installed Libraries</segtitle>
210 <segtitle>Installed Directories</segtitle>
[0931098]211
[5ab6e72]212 <seglistitem>
213 <seg>rsync</seg>
214 <seg>None</seg>
[fdf798a6]215 <seg>Optionally, /usr/share/doc/rsync-&rsync-version;</seg>
[5ab6e72]216 </seglistitem>
217 </segmentedlist>
[0931098]218
[5ab6e72]219 <variablelist>
220 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
221 <?dbfo list-presentation="list"?>
222 <?dbhtml list-presentation="table"?>
[0931098]223
[5ab6e72]224 <varlistentry id="rsync-prog">
225 <term><command>rsync</command></term>
226 <listitem>
227 <para>is a replacement for <command>rcp</command> (and
228 <command>scp</command>) that has many more features. It uses the
[fdf798a6]229 <quote>rsync algorithm</quote> which provides a very fast method of
230 syncing remote files. It does this by sending just the differences
231 in the files across the link, without requiring that both sets of
232 files are present at one end of the link beforehand.</para>
[5ab6e72]233 <indexterm zone="rsync rsync-prog">
234 <primary sortas="b-rsync">rsync</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
[0931098]238
[5ab6e72]239 </variablelist>
[46cef72]240
[5ab6e72]241 </sect2>
[46cef72]242
[5ab6e72]243</sect1>
Note: See TracBrowser for help on using the repository browser.