Technical data
Using BACKUP
11.13 Backing Up Files and Directories
$ BACKUP [LYKINS...]*.*;* [OWLCR...]*.*;*
Note
Disk-to-disk copy operations initiated using the /VERIFY qualifier might
attempt to verify files that are not copied. For example, if an error
prevents you from successfully copying a file from one disk to another
location and you specified the /VERIFY qualifier for that operation, the
system displays two error messages: one indicates that the file was not
copied, and the other indicates that the file was not verified.
11.13.2 Backing Up Files and Directories to a Save Set
One of the most common BACKUP operations is to save files to a save set.
There are several types of save sets. For more information about save sets, see
Section 11.5.
How to Perform This Task
To back up files or directories, use the BACKUP command in the following format:
BACKUP input-specifier output-specifier [/SAVE_SET] [/LABEL=label]
The input-specifier specifies the file you want to back up, and the output-specifier
specifies the device and save-set name.
When you save data to disk, use the output save-set qualifier /SAVE_SET. If you
do not specify /SAVE_SET, BACKUP copies files in standard file format rather
than creating a BACKUP save set. When you save data to tape, you do not need
to specify /SAVE_SET; BACKUP treats all magnetic tape files as save sets. Use
the /LABEL qualifier to specify the label of the tape you are using.
Examples
1. The following commands back up the file EMPLOYEES.DAT to a save set:
$ ALLOCATE MUA0: TAPE1
!
%DCL-I-ALLOC, MUA0: allocated
$ INITIALIZE TAPE1 DLY101
"
$ BACKUP/LOG EMPLOYEES.DAT MUA0:EMPL_MAY91.BCK/LABEL=DLY101
#
%MOUNT-I-MOUNTED, BACKUP mounted on _MUA0:
BACKUP-S-COPIED, copied DUA0:[SCHULT]EMPLOYEES.DAT;32
$
In this example, the individual commands performs the following actions:
! Allocate the tape drive MUA0: and assign it the logical name TAPE1.
" Initialize the tape in the drive and assign it the label DLY101.
# Save the file EMPLOYEES.DAT to a save set on the tape in MUA0. The
/LOG qualifier causes BACKUP to display the file specification of the file
that BACKUP copies. The /LABEL qualifier indicates the volume label
that you assigned with the INITIALIZE command.
2. To create a magnetic-tape save set named NOV13SAVE.BCK that contains
all files and subdirectories of a directory tree named [LYKINS...], enter the
following command:
$ BACKUP [LYKINS...] TAPE:NOV13SAVE.BCK/LABEL=NOV13
Using BACKUP 11–25










