From owner-freebsd-questions Sun Mar 5 15:18: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (fedde.littleton.co.us [216.17.174.44]) by hub.freebsd.org (Postfix) with ESMTP id 6FD7837BB1F for ; Sun, 5 Mar 2000 15:17:57 -0800 (PST) (envelope-from cfedde@fedde.littleton.co.us) Received: from fedde.littleton.co.us (localhost.fedde.littleton.co.us [127.0.0.1]) by fedde.littleton.co.us (8.10.0.Beta10/8.10.0.Beta10) with ESMTP id e25NHhT32303; Sun, 5 Mar 2000 16:17:43 -0700 (MST) Message-Id: <200003052317.e25NHhT32303@fedde.littleton.co.us> To: "Kevin Oberman" Cc: freebsd-questions@FreeBSD.ORG From: Chris Fedde Subject: Re: Copying partitions In-reply-to: Your message of "Sat, 04 Mar 2000 20:32:48 PST." <200003050432.UAA31562@ptavv.es.net> Date: Sun, 05 Mar 2000 16:17:43 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Kevin Oberman" writes: +--------------- | With the low price of disk drives and the high price of both tape | drives and media, I have decided that a disk is the most cost | effective backup medium I can buy. +--------------- I've been making clones of drives using dd for years. I've even used dd to make clones of drives with windows partitions. If the geometry of the two drives is identical you can simply use something like dd if=/dev/da0c of=/dev/da1c to cause drive1 to be a fully bootable and identical copy of drive0. Obviously, do this in single user mode if drive 0 is mounted. If you want to insure that the data is mobile to different drive geometries then you can use any of the file archive commands. I prefer pax(1) because it is as flexible as cpio but has a more rational command line and creates normal tar files (by default). To mirror hierarchies I usually run cd /soure pax -rwvpe . /dest This creates /dest/... with all permissions and attributes identical to the /source. Generally I store tar.gz files created using something like cd / pax -w -X . | gzip > /disk/3/backup/root`date +%Y%m%d.tar.gz` rather than 'mirroring' partitions. The tar.gz take up less space and can't be confused with the "real" hierarchies. chris __ Chris Fedde 303 773 9134 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message