From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 01:48:26 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E9A1CE0 for ; Mon, 5 Nov 2012 01:48:26 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id DA9C98FC0A for ; Mon, 5 Nov 2012 01:48:25 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so7141335vcb.13 for ; Sun, 04 Nov 2012 17:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=H1NRoFz7HcgmiIr9BJ7xqeYiJLDo+IgF8IgAQM40Gu8=; b=vzy80yAX0zXwg9MNl3tjhcETNK6jmlMsbejWW6U6IAgp0q2DxnwpikDB7+S0XweWju bL9bqezpXY5L2rnUheaUQUKpkIbL7UNDjZmmkfIyRznXrSZpA+j89BDZrUsUmr5kjbPA 73Ggjh1BYzWPJlcurQ0FdQVfIzuafQxaSj/vpsU35zl/OqR+m36yv9+/Dj/HSGaUvO+O ydyNDL9XoJDUgOzw8VRDxQk35qwLa1QqAUi+4jY4clgVP5SMtLEPV+iO7dodJ4FSxcD+ KErxPlrvMxgOaOYrOHhbuJoOzP9lx2IeT7H0Pez++QJcEvmts06wngt3z09amHm/TCBR jXOw== MIME-Version: 1.0 Received: by 10.59.12.163 with SMTP id er3mr1954641ved.35.1352080104982; Sun, 04 Nov 2012 17:48:24 -0800 (PST) Received: by 10.58.218.35 with HTTP; Sun, 4 Nov 2012 17:48:24 -0800 (PST) In-Reply-To: <20880.1352077018@tristatelogic.com> References: <20880.1352077018@tristatelogic.com> Date: Sun, 4 Nov 2012 17:48:24 -0800 Message-ID: Subject: Re: Questions about dump/restore to/from DVD media From: Mehmet Erol Sanliturk To: "Ronald F. Guilmette" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 01:48:26 -0000 On Sun, Nov 4, 2012 at 4:56 PM, Ronald F. Guilmette wrote: > > I would like to make a backup of one of my systems using dump(8) in order > to be sure that I get everything, including all of the obscure file > attribute > bits. > > I would like to make this backup to a _minimal_ number of DVD+R disks. > > What's the proper procedure for this? > > In the dump(8) man page, I see the following example: > > /sbin/dump -0u -L -C16 -B4589840 -P 'growisofs -Z /dev/cd0=/dev/fd/0' /u > > There are several problems with this example, as far as I am concerned. > > First I have no particular interest in, or need for _either_ an ISO 9660 > _or_ a UDF file system on my backup media. And in fact, that seems to me > as if it is likely to be an utter waste of (precious) space on the backup > media. Can't I just put the output of the dump command _directly_ onto > the output DVD+R media? If so, how would I do this? Would a command > such as the following work? > > /sbin/dump -0u -L -C16 -B4589840 -P 'dd of=/dev/acd0 bs=2048' /u > > If not, why not? (I already know for sure that I can _read_ everything > off of a DVD+R using just dd, so it seems logical that I should likewise > be able to write an entire CD using just dd, but I suspect that there may > be more to it that this, since I've never seen any references or examples > anywhere of anybody writing either CDs or DVDs using dd.) > > Actually, I just noticed in the dump manpage the -f option. So would this > work in place of the above command line? > > /sbin/dump -0u -L -C16 -B4589840 -f /dev/acd0 /u > > And if THAT works, then can dump properly sense the actual end-of-media on > /dev/acd0, so that the -B option can just be ommitted? > > Another issue is that I most definitely want to use an absolute minimum > of DVD+Rs to store the dump. So I am wondering how I might be able to > wedge gzip into this whole process. Could I do something like this? If > not, why not? > > /sbin/dump -0u -L -C16 -B4589840 -P 'gzip | dd of=/dev/acd0 bs=2048' /u > > Lastly, I want to make a backup of one entire _system_... not just one of > the several partitions that compose that system. How exactly can I do > this? I mean sure, I can back up each partition separately, using dump, > one at a time, but if I do that then the logical implication would seem > to be that on the last DVD+R used to make a backup of each of the > partitions, > there could possibly be a lot of unused/wasted space which could have been > used to store the first part of the dump for the next partition in turn. > Is there any way to effectively deal with _this_ issue? > > > Regards, > rfg > Assume one file will NOT be copied more than ONE DVD , i.e. , each file will be completely recorded on one DVD : http://en.wikipedia.org/wiki/Cutting_stock_problem Thank you very much . Mehmet Erol Sanliturk