Gentoo Archives: gentoo-server

From: Ow Mun Heng <Ow.Mun.Heng@×××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] replay emerge.log?
Date: Tue, 31 May 2005 06:10:43
Message-Id: 1117519811.2660.10.camel@neuromancer.home.net
In Reply to: [gentoo-server] replay emerge.log? by Phillip Berry
1 On Tue, 2005-05-31 at 15:42 +1000, Phillip Berry wrote:
2 > Hi all,
3 >
4 > I'm trying to setup a test server after an old one died. Obviously i want it
5 > to replicate the prod servers in everyway including having the same versions
6 > of applications and the like. So i was thinking that maybe the easiest way
7 > would be to somehow use the emerge.log from a production server and some
8 > scripting to create a sort of replay log? Has anyone done anything like this?
9 > Anyone have any thoughts on why it might not be a good idea?
10
11
12 If you're talking about getting it to emerge all the packages which is
13 present in the original box. Then it's not a good idea.
14
15 better would be to use something like
16
17 find /var/db/pkg/ -type d -mindepth 2 | sed 's:\/var\/db\/pkg\/::' to
18 list all the packages. Note that this will be even better than the world
19 file because it contains all the dependencies pulled in etc (which is
20 not included in normal world file)
21
22
23 --
24 Ow Mun Heng
25 Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
26 98% Microsoft(tm) Free!!
27 Neuromancer 14:04:39 up 16:06, 8 users, load average: 0.96, 1.34, 1.24
28
29
30 --
31 gentoo-server@g.o mailing list