Gentoo Archives: gentoo-user

From: Momesso Andrea <momesso.andrea@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Web server mirror
Date: Wed, 08 Apr 2009 20:14:59
Message-Id: 20090408210957.GA6654@cubotto.ath.cx
In Reply to: [gentoo-user] Re: Web server mirror by Nikos Chantziaras
1 On Wed, Apr 08, 2009 at 11:06:24PM +0300, Nikos Chantziaras wrote:
2 > Momesso Andrea wrote:
3 >> I'm not a professional admin, but I run a web server that was supposed
4 >> to be a small system for a couple of users (my wife and her students),
5 >> and now became something bigger with some amount of traffic, and some
6 >> people rely on it for critical data.
7 >> Since the scope of the site changed I'd like to add some extra security.
8 >> As now all I have are dayly snapshot backup of the server hard disk on
9 >> an external disk and weekly I move one of those snapshot on a disk that
10 >> I store off site and is used only for this scope.
11 >> In the same lan I also run another machine that I use as a home server
12 >> for personal purpose.
13 >> I'd like to keep a mirror of all the webapps running on the main server
14 >> in this machine for two puroposes:
15 >> 1) Have a backup working site, so that if something goes wrong, in the
16 >> time I reinstall from backup, fix hardware or wathever, I can redirect
17 >> the traffic on the salve machine (possibly in read only mode).
18 >
19 > Put them both behind a NAT. When one goes down, you NAT the port to the
20 > other machine.
21 >
22
23 Ok, nice suggestion.
24
25 >> 2) Keeping a copy of the working site on a virtual host in the other
26 >> machine allows the admin (my wife) to test new stuff, change things, add
27 >> modules, without putting in danger the main site.
28 >
29 > rsync the main machine to the second machine. You can rsync specific
30 > folders. If your website is in /var/www of the first machine, you can
31 > rsync that to the /var/www of the second for example.
32 >
33 >> What I ask is some advice on best practice to achieve the needed result;
34 >> I suppose that all I need is to rsync the webserver directory in a
35 >> virtual server on the slave machine and to dump the databases, but I'm
36 >> not sure this will be enough.
37 >
38 > rsync does the mirroring, NAT does the redirection of traffic. Those are
39 > the tools used by most to achieve what you described.
40 >
41 Ok, but what about databases? Joomla has his own and mediawiki too...
42 Just dump it and copy it? Will it work?
43
44 ---
45 TopperH
46 http://topperh.blogspot.com

Replies

Subject Author
Re[2]: [gentoo-user] Re: Web server mirror "Sergey A. Kobzar" <sergey.kobzar@××××.ru>
[gentoo-user] Re: Web server mirror Nikos Chantziaras <realnc@×××××.de>
Re: [gentoo-user] Re: Web server mirror ert256 <ert256@×××××.com>
Re: [gentoo-user] Re: Web server mirror Neil Bothwick <neil@××××××××××.uk>