Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2004 08:04:34 -0400
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Eivind Eklund <eivind@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 
Message-ID:  <200404131204.i3DC4Yeu074420@green.homeunix.org>
In-Reply-To: Message from Eivind Eklund <eivind@FreeBSD.org>  of "Tue, 13 Apr 2004 11:08:20 -0000." <20040413110820.GB2625@FreeBSD.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Eivind Eklund <eivind@FreeBSD.org> 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.                       \,,,,,,,,,,,,,,,,,,,,,,\




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404131204.i3DC4Yeu074420>