HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
v
vxrestore(1M) vxrestore(1M)
cleaning up after a restore aborts prematurely.
verbose The sense of the v modifier is toggled. When set to verbose, the
ls command
lists the inode numbers of all entries. and
vxrestore prints information
about each file as it is extracted.
-r Read the tape and load into the current directory. Be careful when using the
-r option.
Restore only a complete dump tape onto a clear file system, or restore an incremental dump
tape after a full level zero restore. The following is a typical sequence to restore a complete
dump:
/usr/sbin/newfs -F vxfs /dev/rdsk/c0t0d0
/usr/sbin/mount -F vxfs /dev/dsk/c0t0d0 /mnt
cd /mnt
vxrestore -r
The following is a typical sequence to restore a complete dump if you are using the VERITAS
Volume Manager:
mkfs -F vxfs /dev/vx/rdsk/vol1 80m
mount -F vxfs /dev/vx/dsk/vol1 /mnt
cd /mnt
vxrestore -r
You can then execute another vxrestore to restore an incremental dump on top of this.
Note that vxrestore leaves a file, restoresymtab
, in the root directory of the file system
to pass information between incremental
vxrestore passes. Remove this file when the last
incremental tape is restored.
-R Resume a full restore. vxrestore restarts from a checkpoint it created during a full restore
(see -r above). It requests a particular tape of a multi-volume set on which to restart a full
restore. This provides a means for interrupting and restarting a multi-volume vxrestore.
-s number
number is the dump file number to recover. This is useful if there is more than one dump file
on a tape.
-t Names of filenames , as specified on the command line, are listed if they occur on the tape. If
no filename is given, the root directory is listed, which results in the entire content of the tape
being listed, unless -h is specified.
-x Extract named files from the tape. If the named file matches a directory whose contents are
written onto the tape, and the -h option is not specified, the directory is recursively
extracted. The owner, modification time, and mode are restored (if possible). If no filename
argument is given, the root directory is extracted, which results in the entire contents of the
tape being extracted, unless -h is specified.
The following options can be used in addition to the letter that selects the primary function:
-b blocksize
Specify the block size of the tape in kilobytes. If the -b option is not specified, vxrestore
determines the tape block size dynamically. (This option exists to preserve backwards compa-
tibility with previous versions of vxrestore.)
-c By default, vxrestore writes data directly to disk and does not use the system buffer cache
to restore data. This ensures that the buffer cache does not change on an operational system,
which generally improves system performance. Writing data synchronously to disk may, how-
ever, slightly slow the restore process. If you specify the -c option, vxrestore will cache
data before writing to disk. This preserves compatibility with previous versions of vxre-
store.
-e opt
Specify how to handle a vxfs file that has extent attribute information. Extent attributes
include reserved space, a fixed extent size, and extent alignment. It may not be possible to
preserve the information if the destination file system does not support extent attributes, has
a different block size than the source file system, or lacks free extents appropriate to satisfy
the extent attribute requirements. Valid values for opt are:
force Fail to restore the file if extent attribute information cannot be kept.
Section 1M−−904 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003