Installation guide

restore -Yrf dump_file
If the disk does not have a label, write the label by using the disklabel
command before you create the new file system. Use the following
command syntax to determine if the disk has a label:
disklabel -r disk
Writing a label with customized partition table settings may affect the
entire disk. Use the following command syntax to write the default disk
partition table:
disklabel -rw disk disk_type
The
disk
parameter specifies the disk that includes the device mnemonic
and unit number. The
disk_type
parameter specifies the type of disk
associated with the
disk
as described in the /etc/disktab file.
Invoke the editing option of the disklabel command to use the
customized partition table settings. Refer to Chapter 7 or to disklabel
(8)
for more information.
The
raw_device
parameter specifies the full raw device pathname of the
disk device on your system. The
block_device
parameter specifies the
full block device pathname of the disk device on your system. The
filesystem
parameter specifies the full pathname of the file system you
want to make available. The
dump_file
parameter specifies the full
pathname of the file containing the dump data.
The following example shows the commands you use to restore a file
system called /usr/projects on an RZ57 disk from a tape:
# disklabel -rw rz1 rz57
# newfs /dev/rrz1c
# mount /dev/rz1c /usr/projects
# cd /usr/projects
# restore -Yrf /dev/rmt0h
11.4.2 Restoring Files
When users lose files, they ask their system administrator to restore those
files. Users may also ask you to restore an earlier version of a file.
Whatever the reason for a file restoration, determine which tape contains
the correct version of the file. If you are restoring a file on UFS, use the
restore command to restore the file. If you are restoring a file on AdvFS,
refer to the vrestore
(8) reference page for information.
11–18 Administering the Archiving Services