On Tue, 2005-05-31 at 15:42 +1000, Phillip Berry wrote:
> Hi all,
> 
> I'm trying to setup a test server after an old one died.   Obviously i want 
> it 
> to replicate the prod servers in everyway including having the same versions 
> of applications and the like.   So i was thinking that maybe the easiest way 
> would be to somehow use the emerge.log from a production server and some 
> scripting to create a sort of replay log? Has anyone done anything like this? 
>  
> Anyone have any thoughts on why it might not be a good idea?


If you're talking about getting it to emerge all the packages which is
present in the original box. Then it's not a good idea.

better would be to use something like 

find /var/db/pkg/ -type d -mindepth 2 | sed 's:\/var\/db\/pkg\/::' to
list all the packages. Note that this will be even better than the world
file because it contains all the dependencies pulled in etc (which is
not included in normal world file)


-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 14:04:39 up 16:06, 8 users, load average: 0.96, 1.34, 1.24 


-- 
[email protected] mailing list

Reply via email to