From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 00:21:14 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F99916A4CE for ; Fri, 22 Apr 2005 00:21:14 +0000 (GMT) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A1D543D2F for ; Fri, 22 Apr 2005 00:21:14 +0000 (GMT) (envelope-from cliftonr@lava.net) Received: by malasada.lava.net (Postfix, from userid 102) id 73A5A153886; Thu, 21 Apr 2005 14:21:13 -1000 (HST) Date: Thu, 21 Apr 2005 14:21:13 -1000 From: Clifton Royston To: Joshua Lewis Message-ID: <20050422002112.GD8296@tikitechnologies.com> Mail-Followup-To: Joshua Lewis , freebsd-questions@freeBSD.org References: <5a30a6e91a41e8a626da.20050421160337.wzyrjvf@www.dslextreme.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a30a6e91a41e8a626da.20050421160337.wzyrjvf@www.dslextreme.com> User-Agent: Mutt/1.4.2i cc: freebsd-questions@freeBSD.org Subject: Re: backup FreeBSD system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 00:21:14 -0000 On Thu, Apr 21, 2005 at 04:03:37PM -0700, Joshua Lewis wrote: > I have a working FreeBSD system that I love and...(Wow saying out loud I > think I may need to seek a professional). Any way I would hate to loose it > and was wondering if there is a way to make a duplicate system without > weeks of configuration. Kind of like RAID Mirroring for a computer? ... > I am probably going to load FreeBSD from scratch. Not hard at all. I can > be done in a matter of 20 mins ISTR it takes a bit more time than that to install the base system, but it's not too bad. Here's how I would probably do what you want to do: * Buy the second system with exact duplicate hardware. * Install FreeBSD on it from sysinstall as you said, partitioning the drive the same way as your previous system and newfsing all the partitions. * Shut down both systems to power off, pull the hard drive out of the new system, and mount it temporarily into the working system as a second drive. * Boot it up into FreeBSD, in single-user mode, and mount all the file systems, including mounting all the file systems on the new drive onto temporary mount points. * Use rsync to clone each file system from the working system to the corresponding partition on the new system. (This should go fast if you've already installed the base system, as most files will already be there and be identical.) * Shut it down and remove the new drive. * Reboot the working system as normal. * Restore the drive to the second system, and it should boot up as an exact clone of the working system. Then you'll just need to edit the hostname and IP address in rc.conf (and any application config files that reference them) before you put it onto the network. (Oh, and clean out the logs in /var, as it will have picked up the logs and "history" of the first system.) * Done. This should get you a system that in every respect but name and IP functions as a clone of your existing one, and it should be pretty fast to do. -- Clifton -- Clifton Royston -- cliftonr@tikitechnologies.com Tiki Technologies Lead Programmer/Software Architect "I'm gonna tell my son to grow up pretty as the grass is green And whip-smart as the English Channel's wide..." -- 'Whip-Smart', Liz Phair