Technical data

Using BACKUP
11.14 Restoring Files and Directories
How to Perform This Task
To restore files, use the BACKUP command in the following format:
BACKUP save-set-specier [/SAVE_SET] /SELECT=[dir...] output-specier:[dir...]
Use the /SAVE_SET qualifier if the save set is on a disk or diskette. The
/SELECT qualifier lets you specify the exact file you want to restore.
If your save set is stored on more than one magnetic tape or sequential disk
volume, it is possible to begin restore and compare operations with any volume
of the save set. However, if you are restoring a save set with the command
qualifier /IMAGE, processing must begin with the first volume. (An image restore
operation restores all files to a volume or volume set.) If you attempt an image
restore or compare operation and specify a tape that is not the first volume of the
save set, you receive the following message:
%BACKUP-W-NOT1STVOL, tape nameis not the start of a save set
You can use the command qualifier /LOG to monitor the files as they are restored.
To restore only a small number of files from a large save set, press Ctrl/Y to
terminate processing once the files you need have been restored.
Examples
1. If you mistakenly delete the file USER1:[WORK.SEPT]INVOICES.DAT but it
has been backed up to a save set named NIGHTLY.BCK, you could restore it
using the following command:
$ BACKUP
_From: MUA0:NIGHTLY.BCK/SELECT=[WORK.SEPT]INVOICES.DAT
_To: USER1:[WORK.SEPT]INVOICES.DAT
2. You can also use wildcard characters to restore more than one file. For
example:
$ BACKUP/LOG
_From: MUA0:NIGHTLY.BCK/SELECT=[WORK.SEPT]INVOICES*.*
_To: USER1:[WORK.SEPT]INVOICES*.*
%BACKUP-S-CREATED, created USER1:[WORK.SEPT]INVOICES_01.TXT;1
%BACKUP-S-CREATED, created USER1:[WORK.SEPT]INVOICES_02.TXT;1
%BACKUP-S-CREATED, created USER1:[WORK.SEPT]INVOICES_03.TXT;1
%BACKUP-S-CREATED, created USER1:[WORK.SEPT]INVOICES_04.TXT;1
%BACKUP-S-CREATED, created USER1:[WORK.SEPT]INVOICES_05.TXT;1
%BACKUP-S-CREATED, created USER1:[WORK.SEPT]INVOICES_06.TXT;1
.
.
.
The /LOG qualifier displays the file specification of the files that you restored.
3. The following example restores files from the magnetic tape save set
NOV12SAVE.BCK to subdirectories of the directory [LYKINS]:
$ BACKUP TAPE:NOV12SAVE.BCK [LYKINS...]
4. To restore a specific file from a save set, use the input save-set qualifier
/SELECT. In the following example, the file STRAT1.DAT in the directory
[LYKINS.GLENDO] was deleted accidentally. The user, who previously
saved the file to a save set named NOV2SAVE.BCK, uses BACKUP to
restore the file to the directory. Next, the user enters the DIRECTORY
command to confirm that the file has been restored to the subdirectory
[LYKINS.GLENDO].
1130 Using BACKUP