User`s guide
BACKUP
of this procedure. See Figure 1 for a diagram of what happens when you
back up a logical disk into a saveset.
2. Restoring individual files from savesets
To restore individual files from savesets, use the /RESTORE and /SAVESET
options in the following general command format:
BACKUP/RESTORE in-dev:[ssname/SAVESET,]file1[,file2,...] out-dev:
where the input saveset can contain an entire device image or only individual
files.
Depending on your input device, one of two things can happen if you do not
specify the saveset name (with the /SAVESET option) in the command line:
• If the input device is a magtape, BUP attempts to restore the specified
file or files from the first saveset encountered on the magtape.
• If the input device is a random-access one, BUP looks for a saveset named
BACKUP.BUP. If BUP does not find BACKUP.BUP, it returns an error
message. For example, the following command causes BUP to look for
saveset BACKUP.BUP on device DL0:
.BACKUP/RESTORE/VERIFY DL0: DL1:
Use commas to separate files, when you specify more than one to restore.
You can also use wildcards to restore files of a particular name or type or to
restore all files (*.*).
Assuming the saveset 28MAY.BUP contains the file FOO.OBJ, you can restore
that file to device DL1 and verify the restoration by using the following
command:
.BACKUP/RESTORE/VERIFY MS0:28MAY.BUP/SAVESET,FOO.OBJ DL1:
This example assumes that magtape MS0 contains the entire file; if not, you
will be prompted to mount the next magtape input volume.
3. Restoring complete logical disks
If you back up logical disks as savesets, you can store them as files (see
Figure 1) or as device images. So, the phrase restoring a logical disk can
apply to any one of the following three BUP operations:
• Restoring a logical-disk saveset as a device image
See the description of the /DEVICE option. Remember: Although this
case restores a a logical disk, the /DEVICE in the command initializes
the output device. That is, the logical-disk image is written to the output
volume on a block-for-block basis, starting at block 0.
• Restoring a logical-disk saveset as a file
See the description of the /FILE option.
RT–11 Command Descriptions 21










