From owner-freebsd-isp@FreeBSD.ORG Tue Jul 12 22:06:22 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 536C316A41C for ; Tue, 12 Jul 2005 22:06:22 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4406543D6A for ; Tue, 12 Jul 2005 22:06:18 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 0F4E58A029B for ; Tue, 12 Jul 2005 15:06:16 -0700 (PDT) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21047-02 for ; Tue, 12 Jul 2005 15:06:14 -0700 (PDT) Received: from s9.sbo (s9.sbo [192.168.0.9]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 70DE88A02A0 for ; Tue, 12 Jul 2005 15:06:14 -0700 (PDT) From: Freddie Cash To: freebsd-isp@freebsd.org Date: Tue, 12 Jul 2005 15:06:11 -0700 User-Agent: KMail/1.8.1 References: <20050712214555.42683.qmail@web53902.mail.yahoo.com> In-Reply-To: <20050712214555.42683.qmail@web53902.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507121506.12834.fcash@ocis.net> X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca Subject: Re: fastest way to duplicate production server? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 22:06:22 -0000 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