The restore command syntax

The restore command syntax

The syntax for the restore command is as follows:

restore [function_key] [options] [arguments] [subtree]

Rules for using the restore command

Follow these rules when you enter the restore command:

The restore command function keys

The following table describes the function keys for the restore command.

Key Meaning
r Rebuilds the file system or subtree. If you are applying incrementals, this must be the only option specified.
R After the restore command is interrupted, this function key restarts data recovery from the last tape file used successfully by the command.
t Lists all the file names on a tape. If you specify a path name, only the files in the path name are listed.
x Extracts an individual file or subtree from the backup.

The restore command options

The following table describes the options for the restore command.

Option Argument Meaning
b number Specifies the blocking factor. Use the same argument for the b option in the dump command.
f tape_file Specifies the name of the tape file. If you specify "-", restore reads from standard input.
D pathname Specifies the absolute path name of a directory into which the files are restored. Without the path name, the files are restored to the directory from which they were backed up.

If you created a backup before you installed multiple volumes on the filer, specify the path name into which the backup is restored. For example, if you backed up the /home directory when the filer contained a single volume and you want to restore /home to /vol/engineering/home, specify /vol/engineering/home as the target path name in the restore command. Otherwise, the home backup is restored to the /home directory of the root volume.

s number Specifies the number of the file if multiple tape files exist on a tape. File numbering starts at 1.
v Specifies that restore takes place in verbose mode. That is, restore displays each file name preceded with its file type. The filer restores files faster without the v option.
y Specifies that restore not ask whether it should abort when getting an error. That is, if there are bad blocks, restore skips over them and continues. This option is particularly useful if you use restore through rsh. This is because without the y option, if restore through rsh encounters a read error, it aborts immediately.
A Specifies that restore does not restore Windows NT ACLs.

Copyright © 1999, Network Appliance, Inc. All rights reserved.

Part No. 210-02334
File: recover1.htm
Last updated: 04/26/99 08:11:50