mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
ae9c5281f1
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1941 af4574ff-66df-0310-9fd7-8a98e5e911e0
46 lines
1.4 KiB
XML
46 lines
1.4 KiB
XML
<sect2>
|
|
<title>Configuring <application>rsync</application></title>
|
|
|
|
<sect3><title>Config files</title>
|
|
<para><filename>/etc/rsyncd.conf</filename></para>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>This is a simple download-only configuration. See the rsyncd man-page for
|
|
additional options (i.e. user authentication).</para>
|
|
|
|
<screen><userinput><command>cat > /etc/rsyncd.conf << "EOF"</command>
|
|
# This is a basic rsync configuration file
|
|
# It exports a single module without user authentication.
|
|
|
|
motd file = /home/rsync/welcome.msg
|
|
use chroot = yes
|
|
|
|
[localhost]
|
|
path = /home/rsync
|
|
comment = Default rsync module
|
|
read only = yes
|
|
list = yes
|
|
uid = rsyncd
|
|
gid = rsyncd
|
|
|
|
<command>EOF</command></userinput></screen>
|
|
</sect3>
|
|
|
|
<sect3><title>rsyncd init.d script</title>
|
|
|
|
<para>Note that you only want to start the <application>rsync</application>
|
|
server if you want to provide a <application>rsync</application> archive on
|
|
your machine. The <application>rsync</application> client doesn't need this
|
|
script to be used.</para>
|
|
|
|
<para>Install <filename>/etc/rc.d/init.d/rsyncd</filename>
|
|
init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
|
|
|
<screen><userinput><command>make install-rsyncd</command></userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|