Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2012 09:45:22 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        "freebsd@dreamchaser.org" <freebsd@dreamchaser.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org>, Jack Mc Lauren <jack.mclauren@yahoo.com>
Subject:   Re: ugh.  dump / restore problem(s) "Cannot find file dump list"
Message-ID:  <alpine.BSF.2.00.1211140939560.53496@wonkity.com>
In-Reply-To: <20121114101152.09b34640.freebsd@edvax.de>
References:  <50A3543E.9000406@dreamchaser.org> <20121114095745.7db0a9e0.freebsd@edvax.de> <1352883668.65811.YahooMailNeo@web126006.mail.ne1.yahoo.com> <20121114101152.09b34640.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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!



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