Format of the Checkpoint Template File in Windows
The checkpoint template file uses the two batch files, ckcopyd.bat (for checkpointing to disk) and ckcopyt.bat (for checkpointing to tape).
The checkpoint template file, cktmpl.def, can be found in the folder %II_SYSTEM%\ingres\files.
Each line contains a command preceded by a four-character code that tells when to use the command.
By altering this file, or the two batch files that it calls, you can change how checkpoints are performed. You can add or delete flags to the underlying operating system commands, or you can supply your own batch files to perform the backup and restore steps.
For example, the command:
BSTD: echo Beginning checkpoint to tape %C of %N locations
indicates what is done initially, before the device is used (B), when checkpointing is used to save (S) a database location to tape (T), for a database (D).
As another example, when executing a checkpoint on a database that spans multiple locations, one of the following commands is executed once for each location (WSTD for backup to tape, WSDD for backup to disk):
WSTD: ckcopyt %N %D BACKUP
WSDD: ckcopyd %D %A BACKUP
The commands instruct the checkpoint operation to call either the ckcopyt.bat or ckcopyd.bat batch command file to do the actual backup.
The checkpoint utility automatically substitutes the appropriate values for “%N,” “%D,” and “%A.”
The ckcopyt.bat batch file calls the Windows backup backup command and passes it the name of the directory for the location, and other operating system flags.
Last modified date: 08/28/2024