Variables

The following keywords serve as parameters, each preceded by a percent sign, that should be added to the script. The variables are then used to read the arguments from within the script.

JOBNAME

The name.

JOBID

The decimal unique ID.

RC

The return code.

JOBLOG

The filename of the main job log.

BACKUPTYPE

BASE: For base backups. INCR: For incremental backups. DIFR: For differential backups.

The following example is based on a Microsoft Windows batch script. Save the following as:

keyword_test.cmd in the Backup Express\sched\scripts folder.

Example:

'keyword_test.cmd

'begin_script

@echo "Name: " %1

@echo "ID: " %2

@echo "Return Code: " %3

@echo "Log File: " %4

@echo "Job Type: " %5

'end_script

In the task panel, select Other Tasks > Set Source Options > Script Options and in the Pre-job script or Post-job script field, enter:

keyword_test.cmd %JOBNAME %JOBID %RC %JOBLOG %BACKUPTYPE

DPX then substitutes the variable with the value retrieved at runtime and writes the values to the job log file.

Last updated