Installation guide
5. You are prompted for the logical volume you want to mount; usually
you respond to this prompt with 1.
You have not read any tapes yet.
Unless you know which volume your file(s) are on you can start
with the last volume and work towards the first.
Specify next volume #: 1
You are then asked whether the extract affects the access modes of the
dot (.). For this example, reply with n.
set owner/mode for ’.’? [yn] n
6. Once the files are extracted, quit the interactive session.
restore > quit
The file1 and file2 files are now in the current directory.
You can automate this procedure in a command file that is read by the −F
option to the restore command. For example, the following command file,
named restore_file, performs the restore operation shown in the
previous example:
cd working
add file1
add file2
extract
1
n
quit
To read and execute this shell script, enter the following command:
# restore -iF restore_file
The result of the procedure in this script is identical to that of the previous
interactive restore session.
11.4.4 Performing Remote Restores
There may be times when you need to perform remote restores. You can use
the rrestore command to perform restores to local directories from a
remote tape device. The rrestore command requires the −f option to
specify the machine name and its backup device. The restore command
has the following syntax:
rrestore -f machine: device
[ options]
The
machine
argument specifies the name of the remote machine where
the backup device is attached, and
device
specifies the name of the backup
device on that remote machine. The colon (:) between
machine
and
device
is necessary just as in other network file-addressing mechanisms.
11–22 Administering the Archiving Services