source: server/other/rsync.xml@ 710e54d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 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 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 710e54d was fdf798a6, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to rsync-2.6.5

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

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