1 |
vapier 05/08/04 00:18:21 |
2 |
|
3 |
Modified: xml/htdocs/doc/en home-router-howto.xml |
4 |
Log: |
5 |
add a quick & dirty howto for setting up a local rsync server |
6 |
|
7 |
Revision Changes Path |
8 |
1.29 +57 -3 xml/htdocs/doc/en/home-router-howto.xml |
9 |
|
10 |
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 |
11 |
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 |
12 |
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 |
13 |
|
14 |
Index: home-router-howto.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v |
17 |
retrieving revision 1.28 |
18 |
retrieving revision 1.29 |
19 |
diff -u -r1.28 -r1.29 |
20 |
--- home-router-howto.xml 2 Jul 2005 09:59:11 -0000 1.28 |
21 |
+++ home-router-howto.xml 4 Aug 2005 00:18:20 -0000 1.29 |
22 |
@@ -1,5 +1,5 @@ |
23 |
<?xml version='1.0' encoding='UTF-8'?> |
24 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.28 2005/07/02 09:59:11 swift Exp $ --> |
25 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/home-router-howto.xml,v 1.29 2005/08/04 00:18:20 vapier Exp $ --> |
26 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
27 |
|
28 |
<guide link="/doc/en/home-router-howto.xml"> |
29 |
@@ -15,8 +15,8 @@ |
30 |
for connecting your home network to the internet. |
31 |
</abstract> |
32 |
|
33 |
-<version>1.8</version> |
34 |
-<date>2005-07-02</date> |
35 |
+<version>1.9</version> |
36 |
+<date>2005-08-03</date> |
37 |
|
38 |
<chapter> |
39 |
<title>Introduction</title> |
40 |
@@ -689,6 +689,60 @@ |
41 |
</section> |
42 |
|
43 |
<section> |
44 |
+<title>Rsync Server</title> |
45 |
+<body> |
46 |
+ |
47 |
+<p> |
48 |
+For those who run multiple Gentoo boxes on the same lan, you often want to |
49 |
+keep from having every machine running <c>emerge sync</c> with remote |
50 |
+servers. By setting up a local rsync, you save on both your bandwidth and |
51 |
+the Gentoo rsync servers' bandwidth. It's pretty simple to do. |
52 |
+</p> |
53 |
+<note> |
54 |
+For a much more in-depth rsync guide, please see the official <uri |
55 |
+link="/doc/en/rsync.xml#doc_chap4">rsync guide</uri> |
56 |
+</note> |
57 |
+ |
58 |
+<p> |
59 |
+Since every Gentoo machine requires rsync, theres no need to emerge it. Edit |
60 |
+the default <path>/etc/rsyncd.conf</path> config file, uncomment the |
61 |
+<c>[gentoo-portage]</c> section, and make sure you add an <c>address</c> |
62 |
+option. All the other defaults should be fine. |
63 |
+</p> |
64 |
+ |
65 |
+<pre caption="Rsync server config"> |
66 |
+pid file = /var/run/rsyncd.pid |
67 |
+use chroot = yes |
68 |
+read only = yes |
69 |
+address = 192.168.0.1 |
70 |
+ |
71 |
+[gentoo-portage] |
72 |
+ path = /mnt/space/portage |
73 |
+ comment = Gentoo Linux Portage tree |
74 |
+ exclude = /distfiles /packages |
75 |
+</pre> |
76 |
+ |
77 |
+<p> |
78 |
+Then you need to start the service (again, the defaults are OK). |
79 |
+</p> |
80 |
+ |
81 |
+<pre caption="Starting the rsync server"> |
82 |
+# <i>/etc/init.d/rsyncd start</i> |
83 |
+# <i>rc-update add rsyncd default</i> |
84 |
+</pre> |
85 |
+ |
86 |
+<p> |
87 |
+Only thing left is to set tell your clients to sync against the router. |
88 |
+</p> |
89 |
+ |
90 |
+<pre caption="Client SYNC settings in make.conf"> |
91 |
+SYNC="rsync://192.168.0.1/gentoo-portage" |
92 |
+</pre> |
93 |
+ |
94 |
+</body> |
95 |
+</section> |
96 |
+ |
97 |
+<section> |
98 |
<title>Mail Server</title> |
99 |
<body> |
100 |
|
101 |
|
102 |
|
103 |
|
104 |
-- |
105 |
gentoo-doc-cvs@g.o mailing list |