The following steps show how to restore a subtree named /vol/vol0/home from a local tape drive. The subtree was backed up as a subtree, not as a directory within a subtree.
To restore the entire filer, repeat the procedure described in this section for each volume. This section assumes that you already initialized the disks on your filer.
If you used one dump command to back up each volume, follow the procedure in "Example of restoring a subtree" to restore each volume. The only difference is that you use /vol/volume_name as the directory to which the backup is restored.
If you used separate dump commands to back up files, directories, and qtrees that make up each volume, restore each file, directory, and qtree. For example, if the root volume contains two directories, /vol/vol0/etc and /vol/vol0/home, and you used the dump commands to back them up separately, follow the steps in the following table to restore the entire volume. In this example, the files are restored from a local tape drive.
| Step | Action |
|---|---|
| 1 | If you are not restoring qtrees, go to Step 4. If you want to restore qtrees, go to Step 2. |
| 2 |
Create directories on the filer using the qtree command that is used as the top of the subtrees to be restored.
Examplesqtree etc qtree home |
| 3 | Set the security for each qtree created in Step 2. |
| 4 |
Install the tape that contains the level 0 backup for the /vol/vol0/etc subtree in the local tape drive.
Note: The restore command doesn't support incremental-only restores. You must begin the restoration from a level 0 dump. |
| 5 | Enter the sysconfig -t command on the filer to determine the name of the tape device. |
| 6 |
Enter the following command on the filer:
restore rfD rst0a /vol/vol0/etcThis command restores the backup in rst0a to the /vol/vol0/etc directory. If the backup for the subtree is in multiple tape files, restore prompts you for the next tape volume when appropriate. See "Examples of restoring from multiple tapes" for a sample screen display when more than one tape contains the dump volume. |
| 7 |
After the restore is finished, remove the tape from the drive. Install another tape that contains the next lowest level of incremental dump.
ExampleIf you have dump tapes containing level 1, level 2, and level 3 dumps of /vol/vol0/etc, load the tape with the level 1 dump in the drive and repeat the restore command. Repeat this step until the backup of the highest dump level, level 3 in this example, is restored. |
| 8 | From the client, remove the restore_symboltable file in the directory that you just restored. |
| 9 | Repeat Steps 4 through 8 for the /vol/vol0/home subtree. |
This section provides examples illustrating how to restore /vol/vol0 that was backed up to multiple tapes using the following command:
dump 0fB rst0a,rst1a 600 /vol/vol0
The following command restores the volume to the /vol/vol0/myexample directory from two tapes that are in different tape drives:
restore rfD rst0a /vol/vol0/myexample
When the restore command prompts you for the next tape drive, enter the name of the tape drive, for example, rst1a.
If the two tapes use the same tape device, for example, rst0a, remove the tape currently in the tape drive and load the next tape. Then accept the default tape device name, for example, rst0a, when the filer prompts you for the name of the device for the second tape.
If you want to restore a specific file or directory from a subtree, use the x option in the restore command. Specify the path name of the file or directory relative to the subtree that was backed up.
If the vol0 volume was backed up as a subtree and you want to restore all contents of the /vol/vol0/test directory, specify /test as the path name in the restore command.
The subtree containing the directory to be restored was backed up to two tapes:
restore xf rst0a /test
In this command, you must specify the tape device for the first tape; it is rst0a in this example. This is necessary because restore needs to read information about the directory structure of the subtree from the first tape before restoring the data.
The filer then displays the following messages to let you specify the tape devices containing the multiple tape volumes. When the filer prompts you for the tape volume number, start with the last tape volume, as shown in this example:
You have not read any tapes yet.
Unless you know which volume your file(s) are on you should start with the last volume and work towards the first.
Specify next volume #: 2
Mount tape volume 2
Enter "none" if there are no more tapes
otherwise enter tape name (default: rst0a) rst1a
You have read volumes: 2
Specify next volume #: 1
Mount tape volume 1
Enter "none" if there are no more tapes
otherwise enter tape name (default: rst1a) rst0a
After prompting for the tape devices, the filer also displays the following question:
set owner/mode for '.'? [yn] y
To keep the original owner and permission modes for the restored files and directories, enter y.
The following example lists the names of all files backed up to rst0a:
restore tf rst0a
The following example lists the names of all files in the /vol/vol0/home directory on rst0a after you backed up the /vol/vol0 volume:
restore tf rst0a /home
Copyright © 1999, Network Appliance, Inc. All rights reserved.
Part No. 210-02334
File: recover4.htm
Last updated: 04/26/99 08:11:50