Performing user-directed snapshot backups with NetBackup for SAP
For scheduled backups, the NetBackup scheduler automatically exports or sets all the environment variables and system settings necessary to run the backups. However, if you want to initiate backups, you must set certain environment variables.
You can initiate a backup in one of the following ways:
By running the brbackup command from the command line.
By running a script that contains the brbackup command.
If you want to enable user-initiated backups, set the following in your environment:
Set the following environment variable to the name of the automatic schedule to use for the phase 1 backup:
SAP_SNC_SCHED=schedule_name_of_backup_type_to_perform
Set the schedule parameter in the initSID.utl file to Application Backup schedule. NetBackup for SAP uses this schedule for backing up control files, configuration files, and archive redo log files.
Additionally, if you plan to run the sap_rman_backup script from the command line, export the following before you run the script:
SAP_FULL = 1 (for performing full backups)
SAP_CINC = 1 (for performing cumulative incremental backups)