Sun Microsystems Sun Workstation 100U System Manager's Manual page 230

Table of Contents

Advertisement

RESTORE(8}
MAINTENANCE COMMANDS
RESTORE(8}
NAME
restore - incremental file system restore
SYNOPSIS
tete/restore key (name ... ]
DESCRIPTION
Restore restores files from tapes previously created via the dump(8) command. Restore's actions
are controlled by the key argument. The key is a string of characters containing at most one func-
tion letter and possibly one or more function modifiers. Other arguments to restore are file or
directory names specifying the files that are to be restored. Unless the h key is specified (see
below), the appearance of a directory name refers to the files and (recursively) subdirectories of
that directory.
FUNCTION LETTERS
The function portion of the key is specified by one of the following letters:
r
The tape is read and loaded into the current directory. This should not be done lightly; the
r
key should only be used 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:
tutorial% tete/newt. /dev /rxyOs easie
tutorial% tete/mount /dev /xyOs/mnt
tutorial% ed /mnt
tutorial% restore r
is a typical sequence to restore a complete dump. Another restore can be done to get an
incremental dump in on top of this. A dump(8} followed by a newfs(8} and a restore can be
used to change the size of a file system.
R
R
estote
requests a particular tape or a multi volume set on which to restart a full restore
(see the
r
key above). This allows restore to be interrupted and then restarted.
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
key is not specified, the directory is recursively
extracted. The owner, modification time, and mode are restored (if possible). If no file
argument
IS
given, the root directory is extracted, which results in the entire content of the
tape being extracted, unless the h key has been specified.
t
List the names of the specified files 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
the h key has been specified. Note that the t key replaces the function of the old dumpdir
program.
I
Restore files interactively from a dump tape. After reading in the directory information
from the tape, re8tore provides a shell like interrace within which the user can move around
the directory tree selecting files to be extracted. The available commands that this 'shell'
provides are given below. For those commands that require an argument, the default is the
current directory.
Ia (arg)
List the current or specified directory. Entries that are directories are appended
with a
'r.
Entries that have been marked for extraction are prep ended with a
'.'. If the verbose key is set the inode number of each entry is also listed.
ed arg
Change the current working directory to the specified argument.
pwd
add
Sun Release 1.1
Print tbe full pathname of the current working directory.
(arg) Add the current directory or specified argument to the list of files to be
extracted~
If a directory is specified, add that directory and all its to the extrac-
tion list (unless the h key is specified on the command line). Files that are on
Last change: 13 March 1984
75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sun workstation 150u

Table of Contents