ugh. dump / restore problem(s) "Cannot find file dump list"

Warren Block wblock at wonkity.com
Wed Nov 14 16:45:30 UTC 2012


On Wed, 14 Nov 2012, Polytropon wrote:

> On Wed, 14 Nov 2012 01:01:08 -0800 (PST), Jack Mc Lauren wrote:
>> There is no - . This is the correct format : restore rf /path/to/dump/files
>
> Really? The manual at "man restore" mentions:
>
>     restore -r [-dDNuvy] [-b blocksize] [-f file | -P pipecommand]
>             [-s fileno]
>
> And in the -r section:
>
>                   newfs /dev/da0s1a
>                   mount /dev/da0s1a /mnt
>                   cd /mnt
>
>                   restore rf /dev/sa0
>
> So it seems that _both_ formats are supported (comparable to
> tar).
>
> One of the (in my opinion) most interesting reference sources
> for dump/restore also mentions this format:
>
> 	# mount /dev/da0s1 /mnt
> 	# mkdir /tmp/oldvar
> 	# cd /tmp/oldvar
> 	# restore -ruf /mnt/var.dump

Yes, -u "unlinks" an existing file before restoring that file, useful 
for restoring dumps over an existing filesystem.  Leave out the -u when 
restoring to a new filesystem and the restore will go faster.

> 	# umount /mnt

And that points out a mistake: /mnt can't be unmounted while it is the 
PWD.  Fixed.

> Source:
>
> http://www.wonkity.com/~wblock/docs/html/backup.html#_em_dump_8_em_em_restore_8_em

Thanks!


More information about the freebsd-questions mailing list