cvs commit: src/sbin/dump dump.8 dump.h main.c tape.c src/sbin/restore extern.h main.c restore.8 tape.c

Brian F. Feldman green at FreeBSD.org
Tue Apr 13 05:04:37 PDT 2004


Eivind Eklund <eivind at 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 at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\




More information about the cvs-all mailing list