From owner-freebsd-questions Sun Feb 11 16:51:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-56-129.knology.net [24.214.56.129]) by hub.freebsd.org (Postfix) with ESMTP id 9E93137B401 for ; Sun, 11 Feb 2001 16:51:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by grumpy.dyndns.org (8.11.1/8.11.1) with ESMTP id f1C0pJN51841; Sun, 11 Feb 2001 18:51:20 -0600 (CST) (envelope-from dkelly@grumpy.dyndns.org) Message-Id: <200102120051.f1C0pJN51841@grumpy.dyndns.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Bjarne Wichmann Petersen Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: Moving setup from one HD to another. In-reply-to: Message from Bjarne Wichmann Petersen of "Sun, 11 Feb 2001 12:17:23 +0100." <20010211121723.629fafbf.bjarne@mekanix.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 11 Feb 2001 18:51:19 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bjarne Wichmann Petersen writes: > On Sun, 11 Feb 2001 01:33:15 -0800 > "Crist J. Clark" wrote: > > > Pipe dump(8) output on each old partition to restore(8) on the new > > one. > > Hmm... lets see if I've gotten this correct. I create a new partition with > the necessary slices. I mount them on my old system /mnt/newsystem. > > cd into eg /mnt/newsystem/usr/ > > dump -0 /usr |restore -r and so on for every filesystem. And remember to > change fstab before booting into the new system. > > OR do I create a new system from scratch with minimal setup and then boot > into it. Mount the old system (/mnt/oldsystem ). > > cd into /usr/ > > dump -0 /mnt/oldsystem/usr/ |restore -r ?? Do it the first way. Write the new using the old rather than copy the old on top of a temporary new. Off the top of my head I would type the command line: # dump 0af - / | ( cd /mnt ; restore -rf - ) # dump 0af - /var | ( cd /mnt/var ; restore -rf - ) # dump 0af - /usr | ( cd /mnt/usr ; restore -rf - ) ... For quickie emergency backups all you really need are /etc, /var, and /home. When I used to administer a bunch of machines I kept careful records of which files got customized in /etc and elsewhere. The record was in the form of a file list I used for tar to do backups. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message