Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2005 15:06:11 -0700
From:      Freddie Cash <fcash@ocis.net>
To:        freebsd-isp@freebsd.org
Subject:   Re: fastest way to duplicate production server?
Message-ID:  <200507121506.12834.fcash@ocis.net>
In-Reply-To: <20050712214555.42683.qmail@web53902.mail.yahoo.com>
References:  <20050712214555.42683.qmail@web53902.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On July 12, 2005 02:45 pm, RC wrote:
> We have a production FreeBSD 4.10 server running old versions of
> Apache/MySQL/PHP from ports.  We'd like to upgrade Apache/MySQL/PHP
> to the latest versions.  Before upgrading we'd like to test on a
> test box.

> What's the fastest way of duplicating the existing Apache/MySQL/PHP
> (including user databases)?  (The production server cannot go down
> for more than a few seconds.)

1.  dump / restore (probably not feasible on 4.x since there's no 
snapshots)
2.  do a minimal install on the new box and rsync everything over from the 
live box
3.  use bsdtar and an ssh tunnel to copy everything over from the old box
4.  install dar and use that to archive everything, transfer the archive 
over to the new box and restore it there
5.  buy a harddrive cloner (only feasible if the box can be done for a 
while)
6.  dd over an ssh tunnel may also work

I've used a variations of 3 (giant tarball of the whole drive burned to CD) 
and 4 (giant dar archive of the whole drive copied around the network) 
with great success.
-- 
Freddie Cash
fcash@ocis.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507121506.12834.fcash>