Library Table of Contents Index Previous Next Comments

Restore examples

Restoring individual files or directories

About restoring a single file  Top

The restore command can extract individual qtrees, subdirectories, or data files from a backup that contains many qtrees, ordinary directories, or data files.

Restoring individual files  Top

Backup:
dump 0f rst0a /vol/vol1/users/tom 
Restore
restore xfD rst0a /vol/vol1/u1/tom spec4 spec5

This command extracts the /vol/vol1/users/tom/spec4 and /vol/vol1/users/tom/spec5 files from the /vol/vol1/users/tom directory and places them in the /vol/vol1/u1/tom directory. The tape drive rewinds the tape.

The elements of this command line are described in the following table.

Element

Meaning

x

Restore a single file or directory.

f

A tape device is supplied in the command line.

D

Restore to a different location from the original.

rst0a

The restore is done using the rst0a tape device.

/vol/vol1/u1/tom

The restored data is put in the /vol/vol1/u1/tom directory.

spec4 spec5

The /vol/vol1/users/tom/spec4 and /vol/vol1/users/tom/spec5 files are extracted.

Library Table of Contents Index Previous Next Comments