From owner-cvs-src@FreeBSD.ORG Tue Apr 13 05:04:37 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E4EE816A4F9; Tue, 13 Apr 2004 05:04:34 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i3DC4Yeu074420; Tue, 13 Apr 2004 08:04:34 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200404131204.i3DC4Yeu074420@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Eivind Eklund In-Reply-To: Message from Eivind Eklund of "Tue, 13 Apr 2004 11:08:20 -0000." <20040413110820.GB2625@FreeBSD.org> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 13 Apr 2004 08:04:34 -0400 Sender: green@green.homeunix.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/dump dump.8 dump.h main.c tape.c src/sbin/restore extern.h main.c restore.8 tape.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 12:04:37 -0000 Eivind Eklund wrote: > On Mon, Apr 12, 2004 at 07:58:07PM -0700, Brian Feldman wrote: > > green 2004/04/12 19:58:07 PDT > > > > FreeBSD src repository > > > > Modified files: > > sbin/dump dump.8 dump.h main.c tape.c > > sbin/restore extern.h main.c restore.8 tape.c > > Log: > > Add -P arguments for dump(8) and restore(8) which allow the user to > > use backup methods other than files and tapes. The -P argument is > > a normal sh(1) pipeline with either $DUMP_VOLUME or $RESTORE_VOLUME > > defined in the environment, respectively. > > > > For example, I can back up my home to three DVD+R[W]s as so: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > /dev/ad0s2e 40028550 10093140 26733126 27% /home > > green# dump -0 -L -C16 -B4589840 -P 'growisofs -Z /dev/cd0=/dev/fd/0' /home > > This looks very interesting - where do you get growisofs and how do you > restore a backup made this way? Thanks; growisofs comes from sysutils/dvd+rw-tools and is used to burn all the DVD media that the other tools can't do well or at all. In this case, I used it to burn the dump straight to the first (only) DVD+RW track. As long as you use a DVD+R or DVD+RW, you should be able to start and stop with virtually no consequences, making them suitable for output directly from dump. If you're using an ATAPI DVD drive to restore them, you should be able to just use restore -f /dev/acd0t01 or even -f /dev/cd0 with no offset if the dump was made at block 0. Otherwise, you'll certainly need to use restore -P to read in the correct track. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\