Ticket #329: rsync-2.5.6_2003-07-31.diff

File rsync-2.5.6_2003-07-31.diff, 9.9 KB (added by danielbaumann@…, 21 years ago)

  • basicnet/basicnet.ent

    diff -Naur BOOK.backup/basicnet/basicnet.ent BOOK/basicnet/basicnet.ent
    old new  
    2121<!-- Basic Networking Programs -->
    2222<!ENTITY basicnet-netprogs SYSTEM "netprogs/netprogs.xml">
    2323<!ENTITY basicnet-netprogs-opensshclient SYSTEM "netprogs/openssh-client.xml">
     24<!ENTITY basicnet-netprogs-rsyncclient SYSTEM "netprogs/rsync-client.xml">
    2425<!ENTITY % ncftp SYSTEM "netprogs/ncftp/ncftp.ent">
    2526<!ENTITY % cvs SYSTEM "netprogs/cvs/cvs.ent">
    2627<!ENTITY % wget SYSTEM "netprogs/wget/wget.ent">
  • basicnet/netprogs/netprogs.xml

    diff -Naur BOOK.backup/basicnet/netprogs/netprogs.xml BOOK/basicnet/netprogs/netprogs.xml
    old new  
    44
    55&ncftp;
    66&basicnet-netprogs-opensshclient;
     7&basicnet-netprogs-rsyncclient;
    78&cvs;
    89&wget;
    910&tcpwrappers;
  • basicnet/netprogs/rsync-client.xml

    diff -Naur BOOK.backup/basicnet/netprogs/rsync-client.xml BOOK/basicnet/netprogs/rsync-client.xml
    old new  
     1<sect1 id="basicnet-netprogs-rsync">
     2<?dbhtml filename="rsync.html" dir="basicnet"?>
     3<title>rsync-&rsync-version; client</title>
     4
     5<para>rsync is a utility for fast incremental file transfers. If you want to
     6install it, the instructions can be found in Chapter 23 -
     7<xref linkend="rsync"/>.  Note that if you only want to use the client, you do
     8<emphasis>not</emphasis> need to run the server and so do not need the startup
     9script and links.  In accordance with good practice, only run the server if you
     10actually need it (and if you don't know whether you need it or not, it's
     11likely that you don't!).</para>
     12
     13</sect1>
     14
  • server/other/other.xml

    diff -Naur BOOK.backup/server/other/other.xml BOOK/server/other/other.xml
    old new  
    77&dhcp;
    88&leafnode;
    99&openssh;
     10&rsync;
    1011&openldap;
    1112&samba;
    1213&xinetd;
  • server/other/rsync/rsync-config.xml

    diff -Naur BOOK.backup/server/other/rsync/rsync-config.xml BOOK/server/other/rsync/rsync-config.xml
    old new  
     1<sect2>
     2<title>Configuring <application>rsync</application></title>
     3
     4<sect3><title>Config files</title>
     5
     6<para><filename>/etc/rsyncd.conf</filename></para>
     7<para>This is a simple download-only configuration. See the rsyncd man-page for
     8additional options (i.e. user authentification).</para>
     9
     10<para><screen><userinput><command>cat &gt; /etc/rsyncd.conf &lt;&lt; "EOF"</command>
     11# This is a basic rsync configuration file
     12# It exports a single module without user authentification.
     13
     14motd file = /home/rsync/welcome.msg
     15use chroot = yes
     16
     17[localhost]
     18        path = /home/rsync
     19        comment = Default rsync module
     20        read only = yes
     21        list = yes
     22        uid = rsyncd
     23        gid = rsyncd
     24
     25<command>EOF</command</userinput></screen></para>
     26
     27<sect3><title>rsyncd init.d script</title>
     28
     29<para>Note that you only want to start the rsync server if you want to provide
     30a rsync archive on your machine. The rsync client doesn't need this script to be
     31sed.  Having said that, if you want to run the rsync daemon, the rsyncd
     32init.d script can be created using the following commands:</para>
     33
     34<para><screen><userinput><command>cat &gt; /etc/rc.d/init.d/rsyncd &lt;&lt; "EOF"</command>
     35#!/bin/sh
     36# Begin $rc_base/init.d/rsyncd
     37
     38# Based on sysklogd script from LFS-3.1 and earlier.
     39# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
     40
     41source /etc/sysconfig/rc
     42source $rc_functions
     43
     44case "$1" in
     45        start)
     46                echo "Starting RSYNC Server..."
     47                loadproc /usr/bin/rsync --daemon --compress
     48                ;;
     49
     50        stop)
     51                echo "Stopping RSYNC Server..."
     52                killproc /usr/bin/rsync
     53                ;;
     54
     55        reload)
     56                echo "Reloading RSYNC Server..."
     57                reloadproc /usr/bin/rsync
     58                ;;
     59           
     60        restart)
     61                $0 stop
     62                sleep 1
     63                $0 start
     64                ;;
     65
     66        status)
     67                statusproc /usr/bin/rsync
     68                ;;
     69
     70        *)
     71                echo "Usage: $0 {start|stop|reload|restart|status}"
     72                exit 1
     73                ;;
     74esac
     75
     76# End $rc_base/init.d/rsyncd
     77<command>EOF
     78chmod 755 /etc/rc.d/init.d/rsyncd</command></userinput></screen></para>
     79
     80<para>Create the symbolic links to this file in the relevant
     81<filename class="directory">rc.d</filename> directories with the following
     82commands:
     83<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
     84ln -sf ../init.d/rsyncd ../rc0.d/K30rsyncd &amp;&amp;
     85ln -sf ../init.d/rsyncd ../rc1.d/K30rsyncd &amp;&amp;
     86ln -sf ../init.d/rsyncd ../rc2.d/K30rsyncd &amp;&amp;
     87ln -sf ../init.d/rsyncd ../rc3.d/S30rsyncd &amp;&amp;
     88ln -sf ../init.d/rsyncd ../rc4.d/S30rsyncd &amp;&amp;
     89ln -sf ../init.d/rsyncd ../rc5.d/S30rsyncd &amp;&amp;
     90ln -sf ../init.d/rsyncd ../rc6.d/K30rsyncd</command></userinput></screen></para>
     91
     92</sect3>
     93
     94</sect2>
     95
  • server/other/rsync/rsync-desc.xml

    diff -Naur BOOK.backup/server/other/rsync/rsync-desc.xml BOOK/server/other/rsync/rsync-desc.xml
    old new  
     1<sect2>
     2<title>Contents</title>
     3
     4<para>The <application>rsync</application> package contains <command>rsync</command>.</para>
     5
     6</sect2>
     7
     8<sect2><title>Description</title>
     9
     10<sect3><title>rsync</title>
     11<para>rsync is a replacement for rcp (and scp) that has many more features. It
     12uses the "rsync algorithm" which provides a very fast method for remote files
     13into sync. It does this by sending just the differences in the files across the
     14link, without requiring that both sets of files are present at one of the ends
     15of the link beforehand.</para></sect3>
     16
     17</sect2>
     18
  • server/other/rsync/rsync-exp.xml

    diff -Naur BOOK.backup/server/other/rsync/rsync-exp.xml BOOK/server/other/rsync/rsync-exp.xml
    old new  
     1<sect2>
     2<title>Command explanations</title>
     3
     4<para><command>--prefix=/usr</command>
     5: This installs rsync in <filename class="directory">/usr</filename> instead of
     6<filename class="directory">/usr/local</filename></para>
     7
     8</sect2>
     9
  • server/other/rsync/rsync-inst.xml

    diff -Naur BOOK.backup/server/other/rsync/rsync-inst.xml BOOK/server/other/rsync/rsync-inst.xml
    old new  
     1<sect2>
     2<title>Installation of <application>rsync</application></title>
     3
     4<para>For security reasons, running rsync server as an unpriviledged user and
     5group is encouraged.</para>
     6
     7<para><screen><userinput><command>groupadd rsyncd &amp;&amp;
     8useradd -c rsyncd -d /home/rsync -g rsyncd -s /bin/false rsyncd</command>
     9</userinput></screen></para>
     10
     11<para>Install <application>rsync</application> by running the following
     12commands:</para>
     13
     14<para><screen><userinput><command>./configure --prefix=/usr &amp;&amp;
     15make &amp;&amp;
     16make install </command></userinput></screen></para>
     17
     18</sect2>
     19
  • server/other/rsync/rsync-intro.xml

    diff -Naur BOOK.backup/server/other/rsync/rsync-intro.xml BOOK/server/other/rsync/rsync-intro.xml
    old new  
     1<sect2>
     2<title>Introduction to rsync</title>
     3
     4<para>The <application>rsync</application> package contains the rsync utility.
     5This is useful for synchronizing large file archives over a network.</para>
     6
     7<sect3><title>Package information</title>
     8<itemizedlist spacing='compact'>
     9<listitem><para>Download (HTTP): <ulink url="&rsync-download-http;"/></para></listitem>
     10<listitem><para>Download (FTP): <ulink url="&rsync-download-ftp;"/></para></listitem>
     11<listitem><para>Download size: &rsync-size;</para></listitem>
     12<listitem><para>Estimated Disk space required: &rsync-buildsize;</para></listitem>
     13<listitem><para>Estimated build time: &rsync-time;</para></listitem></itemizedlist>
     14</sect3>
     15
     16</sect2>
     17
  • server/other/rsync/rsync.ent

    diff -Naur BOOK.backup/server/other/rsync/rsync.ent BOOK/server/other/rsync/rsync.ent
    old new  
     1<!ENTITY rsync SYSTEM "../rsync.xml">
     2<!ENTITY rsync-intro SYSTEM "rsync-intro.xml">
     3<!ENTITY rsync-inst SYSTEM "rsync-inst.xml">
     4<!ENTITY rsync-exp SYSTEM "rsync-exp.xml">
     5<!ENTITY rsync-desc SYSTEM "rsync-desc.xml">
     6<!ENTITY rsync-config SYSTEM "rsync-config.xml">
     7<!ENTITY rsync-buildsize "6.4 MB">
     8<!ENTITY rsync-version "2.5.6">
     9<!ENTITY rsync-download-http "http://rsync.samba.org/ftp/rsync/rsync-&rsync-version;.tar.gz">
     10<!ENTITY rsync-download-ftp "ftp://rsync.samba.org/pub/rsync/rsync-&rsync-version;.tar.gz">
     11<!ENTITY rsyncd-size "571 KB">
     12<!ENTITY rsyncd-time "1 min (1GHz)">
  • server/other/rsync.xml

    diff -Naur BOOK.backup/server/other/rsync.xml BOOK/server/other/rsync.xml
    old new  
     1<sect1 id="rsync" xreflabel="rsync-&rsync-version;">
     2<?dbhtml filename="rsync.html" dir="server"?>
     3<title>rsync-&rsync-version;</title>
     4
     5&rsync-intro;
     6&rsync-inst;
     7&rsync-exp;
     8&rsync-config;
     9&rsync-desc;
     10
     11</sect1>
     12
  • server/server.ent

    diff -Naur BOOK.backup/server/server.ent BOOK/server/server.ent
    old new  
    1919<!ENTITY server-other SYSTEM "other/other.xml">
    2020<!ENTITY % cvsserver  SYSTEM "other/cvsserver/cvsserver.ent">
    2121<!ENTITY % openssh    SYSTEM "other/openssh/openssh.ent">
     22<!ENTITY % rsync      SYSTEM "other/rsync/rsync.ent">
    2223<!ENTITY % bind       SYSTEM "other/bind/bind.ent">
    2324<!ENTITY % dhcp       SYSTEM "other/dhcp/dhcp.ent">
    2425<!ENTITY % xinetd     SYSTEM "other/xinetd/xinetd.ent">
     
    3233%leafnode;
    3334%openldap;
    3435%openssh;
     36%rsync;
    3537%samba;
    3638%xinetd;