NetBackup for SAP backup script parameters
The SAP scripts that enable the SAP utilities to perform backups and restores use parameters defined in the following sources:
Environment variables
Configuration files. For example, initSID.utl, where SID is the instance.
(UNIX or Linux) NetBackup configuration file (bp.conf)
(Windows) NetBackup web UI configuration
You can use the different parameter sources to create SAP scripts to perform different database backup and restore tasks.
For example, you can define %SAP_POLICY% ($SAP_POLICY) in an SAP script to perform different types of backups.
Table: Environment variables describes the environment variables that are created locally when NetBackup's automatic scheduler runs an SAP script. Their values can be used to direct the flow of actions within the script. Some affect the SAP backint interface, and can be changed within the script.
Table: Environment variables
Environment variable | Purpose |
|---|---|
$SAP_POLICY %SAP_POLICY% | Names the NetBackup for SAP policy, if initiated from an automatic backup schedule. If set, specifies the policy to which the application backup jobs will be sent. |
$SAP_SCHEDULED %SAP_SCHEDULED% | Is set to 1 if this operation was initiated from an automatic schedule. If not set to 1, the script can then set values for the other variables during client-initiated operations. |
$SAP_SERVER %SAP_SERVER% | Names the NetBackup server if initiated from an automatic backup schedule. If set, specifies the primary server to which the application backup jobs will be sent. |
$SAP_USER_INITIATED %SAP_USER_INITIATED% | The opposite of SAP_SCHEDULED. Is set to 0 if this operation was initiated from an automatic schedule. |
SAP_SNC_SCHED | Names the NetBackup for SAP automatic schedule, if initiated from an automatic schedule. |
SAP_FULL/SAP_CINC/SAP_INCR | If the backup initiated from an automatic schedule, the appropriate one will be set to 1, the others to 0. |
SAP_CLIENT | Names the NetBackup for SAP client from the policy, if initiated from an automatic schedule. If set, specifies the client name which the application backup job will use |