From owner-freebsd-questions@FreeBSD.ORG Tue Jan 4 02:26:55 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 475E116A4CE for ; Tue, 4 Jan 2005 02:26:55 +0000 (GMT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9319F43D39 for ; Tue, 4 Jan 2005 02:26:54 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp247-7.lns2.adl2.internode.on.net [203.122.247.7]) j042QlRF030067; Tue, 4 Jan 2005 12:56:52 +1030 (CST) From: Malcolm Kay Organization: at home To: Eric F Crist , FreeBSD-Questions Questions Date: Tue, 4 Jan 2005 12:56:47 +1030 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501041256.47339.malcolm.kay@internode.on.net> Subject: Re: Backup with dd? 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: Tue, 04 Jan 2005 02:26:55 -0000 On Tue, 4 Jan 2005 04:27 am, Eric F Crist wrote: > Hello all, > > I've decided to try doing a complete system backup, attempting a > bit-for-bit copy. A friend told me to try the following: > > # dd if=/dev/ad4 of=/dev/ad6 > > Both drives are identical SATA150. Is this the best way? I'm hope to > be able to do a daily/weekly backup this way, and if my primary drive > fails, switch the cables and just reboot. > There can be a few major problems in using dd for backup: If the source is mounted then it can change during backup and lead to a bckup that is not self consistent. At very least when you attempt to boot the backup you will find it is not marked clean and fsck will spend some time fixing it. This problem can probably be avoided by having the source (and destination) unmounted during the backup; perhaps by running the backup from a "fixit" system. The other problem is that it normally will take a very long time. I've tried this in the past -- can't remember details of disk sizes etc. but do recall times in excess of 20 hours, during which the system should be otherwise as dormant as possible. Identical drives are like identical twins; ie they are not quite identical. While it is not likely to be a problem it could be. Safer to use equal sized slices on each drive rather than complete drive. My preference would be to use dump and restore on a partition by partition basis; which is more or less the intended application of these utilities. Malcolm