source: server/other/rsync.xml@ 5254d12

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 5254d12 was 5254d12, checked in by Randy McMurchy <randy@…>, 18 years ago

Standardized the id tag name of the Bootscripts package

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

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