source: networking/netprogs/rsync.xml@ c67fbf64

systemd-11177
Last change on this file since c67fbf64 was c67fbf64, checked in by Krejzi <krejzi@…>, 11 years ago

Remove packages that are now in lfs systemd from blfs.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@11302 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.5 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 "5ee72266fe2c1822333c407e1761b92b">
10 <!ENTITY rsync-size "780 KB">
11 <!ENTITY rsync-buildsize "35 MB (includes installing all documentation)">
12 <!ENTITY rsync-time "0.4 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 &lfs73_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">Optional</bridgehead>
63 <para role="optional"><xref linkend="popt"/>,
64 </para>
65
66 <para condition="html" role="usernotes">User Notes:
67 <ulink url="&blfs-wiki;/rsync"/></para>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of rsync</title>
73
74 <para>For security reasons, running the <application>rsync</application>
75 server as an unprivileged user and group is encouraged. If you intend to
76 run <command>rsync</command> as a daemon, create the
77 <systemitem class="username">rsyncd</systemitem> user and group
78 with the following commands issued by the
79 <systemitem class="username">root</systemitem> user:</para>
80
81<screen role="root"><userinput>groupadd -g 48 rsyncd &amp;&amp;
82useradd -c "rsyncd Daemon" -d /home/rsync -g rsyncd \
83 -s /bin/false -u 48 rsyncd</userinput></screen>
84
85 <para>Install <application>rsync</application> by running the following
86 commands:</para>
87
88<screen><userinput>./configure --prefix=/usr &amp;&amp;
89make</userinput></screen>
90
91 <para>If you have <xref linkend="doxygen"/> installed and wish to
92 build HTML API documentation, issue <command>doxygen</command>.</para>
93
94 <para>If you have <xref linkend="docbook-utils"/> installed and wish to
95 build the user documentation, issue any or all of the following
96 commands:</para>
97
98<screen><userinput>pushd doc &amp;&amp;
99docbook2pdf rsync.sgml &amp;&amp;
100docbook2ps rsync.sgml &amp;&amp;
101docbook2dvi rsync.sgml &amp;&amp;
102docbook2txt rsync.sgml &amp;&amp;
103docbook2html --nochunks rsync.sgml &amp;&amp;
104popd</userinput></screen>
105
106 <para>To test the results, issue: <command>make check</command>.</para>
107
108 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
109
110<screen role='root'><userinput>make install</userinput></screen>
111
112 <para>If you built the documentation, install it using the following
113 commands as the <systemitem class="username">root</systemitem> user:</para>
114
115<screen role='root'><userinput>install -v -m755 -d /usr/share/doc/rsync-&rsync-version;/api &amp;&amp;
116install -v -m644 dox/html/* /usr/share/doc/rsync-&rsync-version;/api &amp;&amp;
117install -v -m644 doc/rsync.* /usr/share/doc/rsync-&rsync-version;</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="configuration">
122 <title>Configuring rsync</title>
123
124 <sect3 id="rsync-config">
125 <title>Config Files</title>
126
127 <para><filename>/etc/rsyncd.conf</filename></para>
128
129 <indexterm zone="rsync rsync-config">
130 <primary sortas="e-etc-rsyncd.conf">/etc/rsyncd.conf</primary>
131 </indexterm>
132
133 </sect3>
134
135 <sect3>
136 <title>Configuration Information</title>
137
138 <para>For client access to remote files, you may need to install the
139 <xref linkend="openssh"/> package to connect to the remote server.</para>
140
141 <para>This is a simple download-only configuration to set up running
142 <command>rsync</command> as a server. See the rsyncd.conf(5)
143 man-page for additional options (i.e., user authentication).</para>
144
145<screen role="root"><userinput>cat &gt; /etc/rsyncd.conf &lt;&lt; "EOF"
146<literal># This is a basic rsync configuration file
147# It exports a single module without user authentication.
148
149motd file = /home/rsync/welcome.msg
150use chroot = yes
151
152[localhost]
153 path = /home/rsync
154 comment = Default rsync module
155 read only = yes
156 list = yes
157 uid = rsyncd
158 gid = rsyncd
159</literal>
160EOF</userinput></screen>
161
162 <para>You can find additional configuration information and general
163 documentation about <command>rsync</command> at
164 <ulink url="http://rsync.samba.org/documentation.html"/>.</para>
165
166 </sect3>
167
168 <sect3 id="rsync-init">
169 <title>Boot Script</title>
170
171 <para>Note that you only want to start the
172 <application>rsync</application> server if you want to provide an
173 <application>rsync</application> archive on your local machine.
174 You don't need this script to run the
175 <application>rsync</application> client.</para>
176
177 <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init
178 script included in the
179 <xref linkend="bootscripts"/> package.</para>
180
181<screen role="root"><userinput>make install-rsyncd</userinput></screen>
182
183 </sect3>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title>Contents</title>
189
190 <segmentedlist>
191 <segtitle>Installed Program</segtitle>
192 <segtitle>Installed Libraries</segtitle>
193 <segtitle>Installed Directories</segtitle>
194
195 <seglistitem>
196 <seg>rsync</seg>
197 <seg>None</seg>
198 <seg>Optionally, /usr/share/doc/rsync-&rsync-version;</seg>
199 </seglistitem>
200 </segmentedlist>
201
202 <variablelist>
203 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
204 <?dbfo list-presentation="list"?>
205 <?dbhtml list-presentation="table"?>
206
207 <varlistentry id="rsync-prog">
208 <term><command>rsync</command></term>
209 <listitem>
210 <para>is a replacement for <command>rcp</command> (and
211 <command>scp</command>) that has many more features. It uses the
212 <quote>rsync algorithm</quote> which provides a very fast method of
213 syncing remote files. It does this by sending just the differences
214 in the files across the link, without requiring that both sets of
215 files are present at one end of the link beforehand.</para>
216 <indexterm zone="rsync rsync-prog">
217 <primary sortas="b-rsync">rsync</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 </variablelist>
223
224 </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.