From owner-freebsd-isp Thu Nov 30 7:38:46 2000 Delivered-To: freebsd-isp@freebsd.org Received: from bsdie.rwsystems.net (bsdie.rwsystems.net [209.197.223.2]) by hub.freebsd.org (Postfix) with ESMTP id 040A837B401 for ; Thu, 30 Nov 2000 07:38:43 -0800 (PST) Received: from bsdie.rwsystems.net([209.197.223.2]) (2249 bytes) by bsdie.rwsystems.net via sendmail with P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for ; Thu, 30 Nov 2000 09:36:47 -0600 (CST) (Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Jun-25) Date: Thu, 30 Nov 2000 09:36:46 -0600 (CST) From: James Wyatt To: Udo Erdelhoff Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Drive Copy In-Reply-To: <20001130004855.M30886@nathan.ruhr.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 30 Nov 2000, Udo Erdelhoff wrote: > James Wyatt wrote some time ago: > > and user tar/cpio to transfer files. > These programs are the wrong tools to do it. They can be used to handle > regular files and {hard,soft} links but they will fail for device nodes, > sparse files and all the other nice features. Use dump, dump or dump: > > cd / > mount /new-root-partition /mnt > dump 0af - | (cd /mnt ; restore -rf -) > umount /mnt Thanks, due to ancient experiences with dump/restore on an old BSD VAX and a Tandy RS/6000, I've disliked dump by default, but this is a great use for it and I need to update my feelings about dump/restore. I usually use tar to move files and cpio to backup disks and MAKEDEV to build the devs on the new system. I like your solution better. That said, because you're using a -f and doing a while tree, I'd try: dump 0af - | (cd /mnt && restore -rf -) ^^ or, more likely: (cd /oldfilesysbase && dump 0af -) | (cd /mnt && restore -rf -) Anyone who types as badly as I do will *love* that the restore isn't done unless the cd works. Thanks for the other missing pieces. FWIW, I usually use "dangerously dedicated" on everything but multiboot laptops so the disklabel clue was great. > Murphy was an optimist. The first step is to create and verify a backup > on a reliable and removable medium. Like dd-ing it to another hard drive? (^_^) Oh yeah, the *tape* drive... Does anyone have bootable tape support on x86? The MakeSysB tape generation on AIX boxes rocks. There also used to be a SCO-usable product (CTar?) that made a tape and a boot floppy. Both worked well. Thanks again for the useful reply. Vielen dank! - Jy@ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message