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!
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"