2003-08-31 22:39:34 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Configuring <application>rsync</application></title>
|
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><filename>/etc/rsyncd.conf</filename></para>
|
2004-02-09 01:55:58 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2003-08-31 22:39:34 +08:00
|
|
|
<para>This is a simple download-only configuration. See the rsyncd man-page for
|
2003-10-04 00:43:11 +08:00
|
|
|
additional options (i.e. user authentication).</para>
|
2003-08-31 22:39:34 +08:00
|
|
|
|
2003-09-24 09:52:37 +08:00
|
|
|
<screen><userinput><command>cat > /etc/rsyncd.conf << "EOF"</command>
|
2003-08-31 22:39:34 +08:00
|
|
|
# This is a basic rsync configuration file
|
2003-10-04 00:43:11 +08:00
|
|
|
# It exports a single module without user authentication.
|
2003-08-31 22:39:34 +08:00
|
|
|
|
|
|
|
motd file = /home/rsync/welcome.msg
|
|
|
|
use chroot = yes
|
|
|
|
|
|
|
|
[localhost]
|
2004-02-09 01:55:58 +08:00
|
|
|
path = /home/rsync
|
|
|
|
comment = Default rsync module
|
|
|
|
read only = yes
|
|
|
|
list = yes
|
|
|
|
uid = rsyncd
|
|
|
|
gid = rsyncd
|
2003-08-31 22:39:34 +08:00
|
|
|
|
2003-09-24 09:52:37 +08:00
|
|
|
<command>EOF</command></userinput></screen>
|
2003-08-31 22:39:34 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>rsyncd init.d script</title>
|
|
|
|
|
2003-09-24 09:52:37 +08:00
|
|
|
<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
|
2004-03-28 09:46:42 +08:00
|
|
|
script to be used.</para>
|
2003-08-31 22:39:34 +08:00
|
|
|
|
2004-03-28 09:46:42 +08:00
|
|
|
<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>
|
2003-08-31 22:39:34 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|