Ticket #329: rsync-2.5.6_2003-07-31.diff
File rsync-2.5.6_2003-07-31.diff, 9.9 KB (added by , 21 years ago) |
---|
-
basicnet/basicnet.ent
diff -Naur BOOK.backup/basicnet/basicnet.ent BOOK/basicnet/basicnet.ent
old new 21 21 <!-- Basic Networking Programs --> 22 22 <!ENTITY basicnet-netprogs SYSTEM "netprogs/netprogs.xml"> 23 23 <!ENTITY basicnet-netprogs-opensshclient SYSTEM "netprogs/openssh-client.xml"> 24 <!ENTITY basicnet-netprogs-rsyncclient SYSTEM "netprogs/rsync-client.xml"> 24 25 <!ENTITY % ncftp SYSTEM "netprogs/ncftp/ncftp.ent"> 25 26 <!ENTITY % cvs SYSTEM "netprogs/cvs/cvs.ent"> 26 27 <!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 4 4 5 5 &ncftp; 6 6 &basicnet-netprogs-opensshclient; 7 &basicnet-netprogs-rsyncclient; 7 8 &cvs; 8 9 &wget; 9 10 &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 6 install 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 9 script and links. In accordance with good practice, only run the server if you 10 actually need it (and if you don't know whether you need it or not, it's 11 likely 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 7 7 &dhcp; 8 8 &leafnode; 9 9 &openssh; 10 &rsync; 10 11 &openldap; 11 12 &samba; 12 13 &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 8 additional options (i.e. user authentification).</para> 9 10 <para><screen><userinput><command>cat > /etc/rsyncd.conf << "EOF"</command> 11 # This is a basic rsync configuration file 12 # It exports a single module without user authentification. 13 14 motd file = /home/rsync/welcome.msg 15 use 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 30 a rsync archive on your machine. The rsync client doesn't need this script to be 31 sed. Having said that, if you want to run the rsync daemon, the rsyncd 32 init.d script can be created using the following commands:</para> 33 34 <para><screen><userinput><command>cat > /etc/rc.d/init.d/rsyncd << "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 41 source /etc/sysconfig/rc 42 source $rc_functions 43 44 case "$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 ;; 74 esac 75 76 # End $rc_base/init.d/rsyncd 77 <command>EOF 78 chmod 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 82 commands: 83 <screen><userinput><command>cd /etc/rc.d/init.d && 84 ln -sf ../init.d/rsyncd ../rc0.d/K30rsyncd && 85 ln -sf ../init.d/rsyncd ../rc1.d/K30rsyncd && 86 ln -sf ../init.d/rsyncd ../rc2.d/K30rsyncd && 87 ln -sf ../init.d/rsyncd ../rc3.d/S30rsyncd && 88 ln -sf ../init.d/rsyncd ../rc4.d/S30rsyncd && 89 ln -sf ../init.d/rsyncd ../rc5.d/S30rsyncd && 90 ln -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 12 uses the "rsync algorithm" which provides a very fast method for remote files 13 into sync. It does this by sending just the differences in the files across the 14 link, without requiring that both sets of files are present at one of the ends 15 of 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 5 group is encouraged.</para> 6 7 <para><screen><userinput><command>groupadd rsyncd && 8 useradd -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 12 commands:</para> 13 14 <para><screen><userinput><command>./configure --prefix=/usr && 15 make && 16 make 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. 5 This 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 19 19 <!ENTITY server-other SYSTEM "other/other.xml"> 20 20 <!ENTITY % cvsserver SYSTEM "other/cvsserver/cvsserver.ent"> 21 21 <!ENTITY % openssh SYSTEM "other/openssh/openssh.ent"> 22 <!ENTITY % rsync SYSTEM "other/rsync/rsync.ent"> 22 23 <!ENTITY % bind SYSTEM "other/bind/bind.ent"> 23 24 <!ENTITY % dhcp SYSTEM "other/dhcp/dhcp.ent"> 24 25 <!ENTITY % xinetd SYSTEM "other/xinetd/xinetd.ent"> … … 32 33 %leafnode; 33 34 %openldap; 34 35 %openssh; 36 %rsync; 35 37 %samba; 36 38 %xinetd;