Any opinions from wikitech-l about this?
----- Forwarded message from Tomasz Wegrzanowski taw@users.sourceforge.net -----
From: Tomasz Wegrzanowski taw@users.sourceforge.net Date: Tue, 30 Jul 2002 04:08:53 +0200 To: Jimmy Wales jwales@bomis.com Subject: Re: [Wikitech-l] rsync for mirroring
On Mon, Jul 29, 2002 at 03:40:12PM -0700, Jimmy Wales wrote:
What do we need to do on our end?
This is just one of many ways of doing it. You should probably play with logs, connection limits, running on lower permisions and stuff like that later, but it should work without this.
Obviously you should add all Wikipedias to list (i have only 3 here) and use correct paths.
1. install rsync 2. ensure that /etc/services contains this line (if not either add this line or write port in /etc/inetd.conf numerucally): rsync 873/tcp # rsync 3. create /etc/rsyncd.conf containing something like that: read only = yes
[pl] path = /home/taw/local/tmp/wiki-pl/ comment = Polish Wikipedia
[de] path = /home/taw/local/tmp/wiki-de/ comment = German Wikipedia
[eo] path = /home/taw/local/tmp/wiki-eo/ comment = Esperanto Wikipedia 4. put following line in /etc/inetd.conf rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon 5. restart inetd
Now to check:
$ rsync localhost:: pl Polish Wikipedia de German Wikipedia eo Esperanto Wikipedia $ rsync localhost::pl drwxrwxr-x 288 2002/01/09 22:22:50 . -rw-rw-r-- 19 2001/09/26 16:23:32 .htaccess drwxrwxr-x 112 2001/10/02 13:07:29 RCS -rw-rw-r-- 302 2000/07/18 20:40:13 hos.png -rw-rw-r-- 235 2001/09/26 17:49:14 index.html drwxrwxr-x 72 2001/10/18 01:37:30 lib-http -rwxrwxr-x 67 2001/09/26 18:05:02 showtr drwxrwxr-x 72 2002/01/12 20:26:36 temp -rwxrw-r-- 1160 2001/04/08 18:34:10 umtrans.pl drwxrwxr-x 592 2001/11/24 09:52:33 wiki $
----- End forwarded message -----
wikitech-l@lists.wikimedia.org