source: networking/netprogs/rsync.xml@ 0a2b7e09

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 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/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0a2b7e09 was 41b674d, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

LFS75 tags

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

  • Property mode set to 100644
File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
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">
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">
13]>
14
15<sect1 id="rsync" xreflabel="rsync-&rsync-version;">
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
36 &lfs75_checked;
37
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
62 <bridgehead renderas="sect4">Recommended</bridgehead>
63 <para role="recommended">
64 <xref linkend="popt"/>
65 </para>
66
67 <bridgehead renderas="sect4">Optional</bridgehead>
68 <para role="optional">
69 <xref linkend="attr"/> and
70 <xref linkend="acl"/>
71 </para>
72
73 <para condition="html" role="usernotes">User Notes:
74 <ulink url="&blfs-wiki;/rsync"/></para>
75
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
85 with the following commands issued by the
86 <systemitem class="username">root</systemitem> user:</para>
87
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>
91
92 <para>Install <application>rsync</application> by running the following
93 commands:</para>
94
95<screen><userinput>./configure --prefix=/usr --without-included-zlib &amp;&amp;
96make</userinput></screen>
97
98 <para>If you have <xref linkend="doxygen"/> installed and wish to
99 build HTML API documentation, issue <command>doxygen</command>.</para>
100
101 <para>To test the results, issue: <command>make check</command>.</para>
102
103 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
104
105<screen role='root'><userinput>make install</userinput></screen>
106
107 <para>If you built the documentation, install it using the following
108 commands as the <systemitem class="username">root</systemitem> user:</para>
109
110<screen role='root'><userinput>install -v -m755 -d /usr/share/doc/rsync-&rsync-version;/api &amp;&amp;
111install -v -m644 dox/html/* /usr/share/doc/rsync-&rsync-version;/api</userinput></screen>
112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para>
119 <parameter>--without-included-zlib</parameter>: This switch enables
120 compilation with system-installed zlib library.
121 </para>
122
123 </sect2>
124
125 <sect2 role="configuration">
126 <title>Configuring rsync</title>
127
128 <sect3 id="rsync-config">
129 <title>Config Files</title>
130
131 <para><filename>/etc/rsyncd.conf</filename></para>
132
133 <indexterm zone="rsync rsync-config">
134 <primary sortas="e-etc-rsyncd.conf">/etc/rsyncd.conf</primary>
135 </indexterm>
136
137 </sect3>
138
139 <sect3>
140 <title>Configuration Information</title>
141
142 <para>For client access to remote files, you may need to install the
143 <xref linkend="openssh"/> package to connect to the remote server.</para>
144
145 <para>This is a simple download-only configuration to set up running
146 <command>rsync</command> as a server. See the rsyncd.conf(5)
147 man-page for additional options (i.e., user authentication).</para>
148
149<screen role="root"><userinput>cat &gt; /etc/rsyncd.conf &lt;&lt; "EOF"
150<literal># This is a basic rsync configuration file
151# It exports a single module without user authentication.
152
153motd file = /home/rsync/welcome.msg
154use chroot = yes
155
156[localhost]
157 path = /home/rsync
158 comment = Default rsync module
159 read only = yes
160 list = yes
161 uid = rsyncd
162 gid = rsyncd
163</literal>
164EOF</userinput></screen>
165
166 <para>You can find additional configuration information and general
167 documentation about <command>rsync</command> at
168 <ulink url="http://rsync.samba.org/documentation.html"/>.</para>
169
170 </sect3>
171
172 <sect3 id="rsync-init">
173 <title>Boot Script</title>
174
175 <para>Note that you only want to start the
176 <application>rsync</application> server if you want to provide an
177 <application>rsync</application> archive on your local machine.
178 You don't need this script to run the
179 <application>rsync</application> client.</para>
180
181 <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
182 script included in the
183 <xref linkend="bootscripts"/> package.</para>
184
185<screen role="root"><userinput>make install-rsyncd</userinput></screen>
186
187 </sect3>
188
189 </sect2>
190
191 <sect2 role="content">
192 <title>Contents</title>
193
194 <segmentedlist>
195 <segtitle>Installed Program</segtitle>
196 <segtitle>Installed Libraries</segtitle>
197 <segtitle>Installed Directories</segtitle>
198
199 <seglistitem>
200 <seg>rsync</seg>
201 <seg>None</seg>
202 <seg>Optionally, /usr/share/doc/rsync-&rsync-version;</seg>
203 </seglistitem>
204 </segmentedlist>
205
206 <variablelist>
207 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
208 <?dbfo list-presentation="list"?>
209 <?dbhtml list-presentation="table"?>
210
211 <varlistentry id="rsync-prog">
212 <term><command>rsync</command></term>
213 <listitem>
214 <para>is a replacement for <command>rcp</command> (and
215 <command>scp</command>) that has many more features. It uses the
216 <quote>rsync algorithm</quote> which provides a very fast method of
217 syncing remote files. It does this by sending just the differences
218 in the files across the link, without requiring that both sets of
219 files are present at one end of the link beforehand.</para>
220 <indexterm zone="rsync rsync-prog">
221 <primary sortas="b-rsync">rsync</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 </variablelist>
227
228 </sect2>
229
230</sect1>
Note: See TracBrowser for help on using the repository browser.