Technical data

Remote (R) Commands
16.5 Remote Magnetic Tape and Remote CD-ROM (RMT/RCD)
Table 16–2 (Cont.) RMT Magtape Qualifiers
Qualifier Description
/DENSITY=n Specifies the density (in bits per inch) at which to write a
foreign or unlabeled magnetic tape. The default is the current
density.
/[NO]MOUNT Specifis whether to use the OpenVMS MOUNT service to
mount the tape. /NOMOUNT gains access to the tape directly
without mounting it. Use this for UNIX utilities that expect
the tape drive to hold its position (not rewind) if the utility
closes it. The default is /MOUNT.
/[NO]REWIND Specifies whether to rewind the drive when it is closed. The
default is /REWIND.
/[NO]STREAM Specifies whether to read the tape in record mode
(/NOSTREAM) or byte-stream mode (/STREAM). The default is
/STREAM.
/[NO]UNLOAD Specifies whether to unload the drive when it is closed. The
default is /UNLOAD.
/[NO]WRITE Specifies whether you can write to the magnetic tape. The
default is /WRITE.
16.5.3 Client Examples
The following steps perform
rdump
and
rrestore
functions from a UNIX client
system. These commands dump two UNIX directories to the tape with separate
rdump
commands. These commands then restore files selectively from the tape to
the UNIX client system:
1. Put the directories on the tape by entering two
rdump
commands. Specify the
/nomount/norewind/nounload
qualifiers to prevent OpenVMS from rewinding
the tape. Although the UNIX system reports that the tape was rewound, it
was not actually rewound. The commands are:
UNIX> /etc/rdump 0f vax:device/nomount/norewind/nounload dir1
UNIX> /etc/rdump 0f vax:device/nomount/norewind/nounload dir2
2. Restore the files selectively from the tape using
rrestore
. Be sure the tape
is loaded and rewound. Use either the interactive or noninteractive command
syntax.
The
rrestore
command might display messages such as
"You have not read
any volumes yet"
and then ask you to specify the next volume. Although these
messages might appear,
rrestore
should work properly.
In the following example,
rrestore
extracts the file specified by file_name from
dump file number 2 on the tape:
UNIX> /etc/rrestore fsx vax:device/nomount/nounload/norewind 2 file-name
In the following example,
rrestore
invokes the interactive utility to let the
user specify particular files that were put on the tape in dump file 2. The
add
command then adds the files to the extraction list and the
extract
command
restores them:
UNIX> /etc/rrestore fis vax:device/nomount/nounload/norewind 2
restore> add file_name
restore> extract
16–6 Remote (R) Commands