vapier      05/08/04 00:18:21

  Modified:    xml/htdocs/doc/en home-router-howto.xml
  Log:
  add a quick & dirty howto for setting up a local rsync server

Revision  Changes    Path
1.29      +57 -3     xml/htdocs/doc/en/home-router-howto.xml

file : 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/home-router-howto.xml?rev=1.29&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain: 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/home-router-howto.xml?rev=1.29&content-type=text/plain&cvsroot=gentoo
diff : 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/home-router-howto.xml.diff?r1=1.28&r2=1.29&cvsroot=gentoo

Index: home-router-howto.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- home-router-howto.xml       2 Jul 2005 09:59:11 -0000       1.28
+++ home-router-howto.xml       4 Aug 2005 00:18:20 -0000       1.29
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='UTF-8'?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 
1.28 2005/07/02 09:59:11 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 
1.29 2005/08/04 00:18:20 vapier Exp $ -->
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
 
 <guide link="/doc/en/home-router-howto.xml">
@@ -15,8 +15,8 @@
 for connecting your home network to the internet.
 </abstract>
 
-<version>1.8</version>
-<date>2005-07-02</date>
+<version>1.9</version>
+<date>2005-08-03</date>
 
 <chapter>
 <title>Introduction</title>
@@ -689,6 +689,60 @@
 </section>
 
 <section>
+<title>Rsync Server</title>
+<body>
+
+<p>
+For those who run multiple Gentoo boxes on the same lan, you often want to 
+keep from having every machine running <c>emerge sync</c> with remote 
+servers.  By setting up a local rsync, you save on both your bandwidth and 
+the Gentoo rsync servers' bandwidth.  It's pretty simple to do.
+</p>
+<note>
+For a much more in-depth rsync guide, please see the official <uri 
+link="/doc/en/rsync.xml#doc_chap4">rsync guide</uri>
+</note>
+
+<p>
+Since every Gentoo machine requires rsync, theres no need to emerge it.  Edit 
+the default <path>/etc/rsyncd.conf</path> config file, uncomment the 
+<c>[gentoo-portage]</c> section, and make sure you add an <c>address</c> 
+option.  All the other defaults should be fine.
+</p>
+
+<pre caption="Rsync server config">
+pid file = /var/run/rsyncd.pid
+use chroot = yes
+read only = yes
+address = 192.168.0.1
+
+[gentoo-portage]
+       path = /mnt/space/portage
+       comment = Gentoo Linux Portage tree
+       exclude = /distfiles /packages
+</pre>
+
+<p>
+Then you need to start the service (again, the defaults are OK).
+</p>
+
+<pre caption="Starting the rsync server">
+# <i>/etc/init.d/rsyncd start</i>
+# <i>rc-update add rsyncd default</i>
+</pre>
+
+<p>
+Only thing left is to set tell your clients to sync against the router.
+</p>
+
+<pre caption="Client SYNC settings in make.conf">
+SYNC="rsync://192.168.0.1/gentoo-portage"
+</pre>
+
+</body>
+</section>
+
+<section>
 <title>Mail Server</title>
 <body>
 



-- 
[email protected] mailing list

Reply via email to