Backup to CD-Rs and DVDs

Xian ian at
Sat Jan 29 04:05:16 PST 2005

On Saturday 29 January 2005 01:51, Carleton Vaughn wrote:
> Ian Moore wrote:
> > Anyway, to backup /usr directly to a dvd(+rw), I use the this command:
> > dump -0 -uL -C16 -B4589840 -P 'growisofs -speed=4 -Z /dev/dvd=/dev/fd/0 '
> > /usr This gives you a dvd or series of dvds with the dump file on them.
> > You can then boot from CD2 (live system) and use restore to restore the
> > data. If the link above is the one I think it is, it gives you an example
> > restore command.
> I'm in the same boat as Xian.  I want to backup to DVD so I can upgrade to
> 5.3.  dump in 4.10 does not have a -P option, and growisofs says nothing
> about handling spanning, so how do I span my dump over multiple DVDs?
> dump -h0 -B 4589840 -S /usr says I'm going to need 6.18 "tapes".  I'm going
> to crack open a beer and just pipe it, to see what happens.
> Then some day if all goes well I will split /usr into /usr and /usr/home,
> 'cause this is ridiculous.
> Thanks.

I have another machine running 4.9 (also without the -P option for dump) and 
the way I get round it is to create the dump on another disk in pieces then 
transfer them to another machine for burning.

 dump <usual args> -B<size of dvd> -f /home/usr.dump /usr

/usr and /home are on different disks. Then when dump asks me if the next 
volume is ready I move /home/usr.dump to /home/usr/dump.1, then tell dump 
yes. And so on until dump has finished

However I am having some issues with this. I transfer them to another machine, 
(checking the md5 of them is the same before and after transfer them), and 
test it with restore

 restore -Nxvb 2 -f usr.dump.1

and the first volume works fine, it says 'End-of-tape encountered'. I start 
the next volume and it tells me 

 unexpected tape header
 abort? [yn]

What could be doing this and how do I fix it?

"Never put off until tomorrow what you can avoid altogether"
unknown author

More information about the freebsd-questions mailing list