Technical data

Using BACKUP
11.13 Backing Up Files and Directories
An image compare operation may not work correctly when you create two
disks with identical files by incrementally backing up and restoring the
files from one disk to the other disk. This is because BACKUP does not
ensure that the incrementally restored files have the same FIDs as the
incrementally saved files. This is true regardless of whether the /OVERLAY,
/NEW_VERSION, or /REPLACE qualifiers are used in the restore command.
Examples
1. The following example compares a save set on tape with files on disk.
The command directs BACKUP to compare the contents of the save set
2MAR1555.BCK with the directory [LYKINS].
$ BACKUP/COMPARE MTA0:2MAR1555.BCK [LYKINS]
2. The following example compares files on disk; note the inconsistency in block
16 between UPLIFT.EXE;4 and UPLIFT.EXE;3:
$ BACKUP/COMPARE UPLIFT.EXE;3 UPLIFT.EXE;4
%BACKUP-E-VERIFYERR, verification error for block 16 of
WRKD$:[LYKINS]UPLIFT.EXE;4
3. To compare two entire Files–11 volumes, use an image compare operation, as
follows:
$ BACKUP/IMAGE/COMPARE DBA1: DBA2:
4. To compare a physical save set with a Files–11 volume, use a physical
compare operation, as follows. All disks in a physical compare operation
must be mounted as foreign volumes.
$ MOUNT/FOREIGN DBA2:
$ BACKUP/PHYSICAL/COMPARE MIA0:PHYSBACK.BCK DBA2:
5. The following example combines a compare operation with a copy operation:
$ BACKUP/VERIFY/LOG FRED.DAT [FRIENDS]OLDFRED.DAT
%BACKUP-S-CREATED, created DISK$:[FRIENDS]OLDFRED.DAT;3
%BACKUP-S-COMPARED, compared DISK$:[FRIENDS]OLDFRED.DAT;3
11.13.4 Creating and Listing BACKUP Journal Files
To keep a record of BACKUP operations, create a journal file. A BACKUP journal
file contains records of BACKUP save operations and the file specifications of the
files saved during each operation.
How to Perform This Task
To create a journal file, use the command qualifier /JOURNAL=[file-spec]ina
BACKUP save operation.
To list the contents of a BACKUP journal file, enter a command in the following
format:
BACKUP/LIST[=le-spec]/JOURNAL[=le-spec]
You cannot specify an input or output specifier with a BACKUP/LIST/JOURNAL
command. If you omit the file specification from the command qualifier /LIST,
BACKUP directs the output to your terminal; if you omit the file specification
from the command qualifier /JOURNAL, the journal file receives the default
BACKUP journal file name (SYS$DISK:[]BACKUP.BJL).
For more information about creating and listing BACKUP journal files, refer to
the description of the /JOURNAL qualifier in the OpenVMS System Management
Utilities Reference Manual.
1128 Using BACKUP