Technical data

Using BACKUP
11.15 Backing Up User Disks
$ BACKUP/RECORD/IGNORE=(INTERLOCK) -
_$ disk:[000000...]*.DIR;* -
_$ NLA0:DUMMY.BCK/SAVE/NOCRC/GROUP_SIZE=0
$
$ BACKUP/VERIFY/FAST/RECORD/IGNORE=(INTERLOCK) -
_$ /NOASSIST/COMMENT="Incremental backup of DISK:" -
_$ disk:[000000...]*.*;*/SINCE=BACKUP -
_$ tape:incr.bck/LABEL=incr/SAVE
In this example, the first BACKUP command performs the dummy backup
operation, and the second command performs the actual incremental backup.
The first command updates the Backup Date field for all the directory files.
Specifying the null output device NLA0:[000000...] causes a save set file not
to be written. Because no file information needs to be retained from this
operation, the /NOCRC and /GROUP_SIZE=0 qualifiers are specified to avoid
CRC and XOR block calculation.
11.15.7 Backing Up Your Workstation Disk
On a standalone workstation, you are probably responsible for backing up files on
your user disks. Section 11.15.7.1, Section 11.15.7.2, and Section 11.15.7.3 contain
command procedures for making image, incremental, and interactive backups of
user disks on your workstation.
Compaq also provides two template command procedures in the SYS$EXAMPLES
directory for you to use in designing BACKUP command procedures. These
command procedures are called BACKUSER.COM and RESTUSER.COM.
If you are not familiar with using command procedures, refer to the OpenVMS
Users Manual.
11.15.7.1 Using a Command Procedure for Nightly Image Backups
The following command procedure performs nightly image backups, backing up
all the files on disk DUA2: to a tape in MUA0. The files are copied to a magnetic
tape save set named FULL_BACKUP.SAV. This procedure is particularly useful
for backing up files on a MicroVAX system or workstation.
How to Perform This Task
To use the command procedure, perform the following steps:
1. Ensure that you have a batch queue available on your system. (See
Section 14.3 for information about setting up a batch queues.) You submit
the command procedure only once, and it will execute daily at 2:00
A.M. The
command procedure automatically resubmits itself at 2:00 each morning;
however, you must physically load a tape each day or the backup procedure
will fail. Even if the backup procedure fails, however, the command procedure
will continue to resubmit itself.
2. From the SYS$MANAGER directory, create the command procedure as shown
and call it SYSTEM_BACKUP.COM.
$!
$! Resubmit this procedure --
$ SUBMIT/AFTER="TOMORROW+2:0" SYS$MANAGER:SYSTEM_BACKUP
$!
$ ON ERROR THEN GOTO FAILURE
$ SET PROCESS/PRIVILEGES=ALL
Using BACKUP 1139