#!/bin/ksh
# --------------------------------------------------------------------------
# backup.ksh:
# Sample BRBACKUP shell script
# --------------------------------------------------------------------------
# Task:
# Invokes the SAP utility brbackup in order to perform a full offline
# backup of all tablespaces using Data Protection for SAP (R) technology.
# --------------------------------------------------------------------------
# ***** NOTE ***** NOTE ***** NOTE *****
#
# This script is intended only as a model and should be
# carefully tailored to the needs of the specific site.
#
# ***** NOTE ***** NOTE ***** NOTE *****
# --------------------------------------------------------------------------
#
# For the following examples, the system id of the ORACLE database
# is assumed to be 'C11'.
#
# --------------------------------------------------------------------------
#
# First, lets do a full offline backup of the ORACLE database. This includes
# at least files located in the following filesystems:
# /oracle/C11/sapdata0
# /oracle/C11/sapdata1
# /oracle/C11/sapdata2
# /oracle/C11/sapdata3
# /oracle/C11/sapdata4
#
# Remarks on the parameters:
#
# -u system/manager Oracle username/password
# -c run brbackup in quiet mode
# -m all backup all tablespaces
# -t offline perform backup offline
#
# The following should be configured within the SAP profile initC11.sap:
#
# backup_dev_type = util_file
# causes brbackup to use the external program backint
# util_par_file = initC11.utl
# Data Protection for SAP profile
#
# --------------------------------COMMAND-----------------------------------
brbackup -u system/manager -c -m all -t offline