Installation guide
command. Because the dump command saves a single file system at a time,
you must execute the restore command for each file system you wish to
restore. The restore command has the following command syntax:
restore options
The
options
parameter indicates the flags and arguments that you use to
specify the characteristics of the tape device and special restore options.
Refer to the restore
(8) reference page for more information about these
options. The following list describes the most commonly used options to the
restore command:
−i
The i (interactive) flag starts interactive restoration
of files from the tape. After reading directory
information from the tape, this option provides a
shell-like interface that allows you to select the files
you want to restore. The commands available in
interactive mode are described in Section 11.4.3.
−r
The r (restore) flag restores the entire contents of
the file system on the backup tape into the current
working directory. You should not do this except to
restore an entire file system into an empty directory
or to restore file system incremental dumps.
−s
The s (skip) flag identifies which dump file on the
media the restore command will use. This is
useful when the dump media contains more than
one dump image and not all of them will be
restored. To effectively use this option, you must be
consistent in the order in which you dump images
to the tape. For example, if you dump multiple file
systems to a single backup tape nightly, dump the
file systems in the same order each night. This will
assist you in locating a particular file or file system
at restore time.
−t
names
The t (table of contents) flag creates a list of files
and directories on the tape that matches the
names
argument. If you specify
names
, the restore
command returns a list of the files and directories
that are on the tape that matches the specified
names. The
names
argument should be specified as
./
filename
. For example, if the .rhosts file and
the staff directory exist on the tape, the restore
11–16 Administering the Archiving Services