Installation guide
By asking when the file was lost and when it was last modified, you can
use your backup log to determine which tape contains the most recent
version of the wanted file. Use the −t option with the restore command to
determine whether a file is on the selected tape. Use the following syntax:
restore -t ./ filename
The −t option creates a list of files and directories on the tape that matches
the
./filename
argument. For example, to list the contents of the
working subdirectory of the /usr file system on a particular backup tape,
load the tape and enter:
# restore -t ./working
To create a list of the entire contents of a backup tape, load the backup
tape and enter:
# restore -t
Make a listing of each backup tape after you create it. This verifies a
successful backup and gives you a place to look up what files are on the
tape.
After determining the location of the file, create a new directory for the file.
If you restore the file into an existing directory and the file already exists,
the restored file will overwrite the existing file. Restore the file by using the
following form of the restore command:
restore -x ./ filename
The file will be restored into your current working directory.
For example, to restore the working/old.file file from a /usr file system
backup tape into your current directory, load the backup tape and enter:
# restore -x ./working/old.file
To restore the entire contents of the working subdirectory from the same
tape, enter:
# restore -x ./working
If your dump media contains multiple dump images, you need to know the
sequence of the dump images in order to restore a file from one of the
images. To examine the contents of the first dump image on the media, load
the tape and enter:
# restore -ts 1
The −s option followed by the number 1 specifies the first dump image.
For example, to restore the working/old.file file from a /usr file
system, which is the third dump image on the backup tape into your
current directory, load the backup tape and enter:
Administering the Archiving Services 11–19