restore.1m (2010 09)
r
restore(1M) restore(1M)
NAME
restore, rrestore - restore file system incrementally, local or across network
SYNOPSIS
/usr/sbin/restore
key [ name ... ]
/usr/sbin/rrestore
key [ name ... ]
DESCRIPTION
The
restore and rrestore commands read tapes previously dumped by the
dump or rdump com-
mand (see dump(1M) and rdump (1M)).
Actions taken are controlled by the key argument where key is a string of characters containing not more
than one function letter and possibly one or more function modifiers. One or more name arguments, if
present, are file or directory names specifying the files that are to be restored. Unless the
h modifier is
specified (see below), the appearance of a directory name refers to the files and (recursively) subdirec-
tories of that directory.
Function Portion of key
The function portion of the key is specified by one of the following letters:
r Read the tape and load into the current directory. r should be used only after careful con-
sideration, and only to restore a complete dump tape onto a clear file system, or to restore an
incremental dump tape after a full level zero restore. Thus,
/usr/sbin/newfs -F hfs /dev/rdisk/disk2
/usr/sbin/mount /dev/disk/disk2 /mnt
cd /mnt
restore r
is a typical sequence to restore a complete dump. Another restore or rrestore can then
be performed to restore an incremental dump on top of this. Note that restore and rre-
store leave a file restoresymtab
in the root directory of the file system to pass informa-
tion between incremental restore passes. This file should be removed when the last incre-
mental tape has been restored. A
dump or rdump followed by a newfs and a restore or
rrestore is used to change the size of a file system (see newfs(1M)).
R restore and rrestore request a particular tape of a multivolume set on which to restart
a full restore (see r above). This provides a means for interrupting and restarting restore
and rrestore.
x Extract the named files from the tape. If the named file matches a directory whose contents
had been written onto the tape, and the h modifier is not specified, the directory is recursively
extracted. The owner, modification time, and mode are restored (if possible). If no file argu-
ment is given, the root directory is extracted, which results in the entire contents of the tape
being extracted, unless h has been specified.
t Names of the specified files are listed if they occur on the tape. If no file argument is given,
the root directory is listed, which results in the entire content of the tape being listed, unless
h has been specified.
s The next argument to restore is used as the dump file number to recover. This is useful if
there is more than one dump file on a tape.
i This mode allows interactive restoration of files from a dump tape. After reading in the direc-
tory information from the tape, restore and rrestore provide a shell-like interface that
allows the user to move around the directory tree selecting files to be extracted. The available
commands are given below; for those commands that require an argument, the default is the
current directory.
add [arg] The current directory or specified argument is added to the list of files to be
extracted. If a directory is specified, it and all its descendents are added to
the extraction list (unless the h key is specified on the command line). File
names on the extraction list are displayed with a leading * when listed by
ls.
cd [arg] Change the current working directory to the specified argument.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1