Full offline backup shell script sample

#!/bin/ksh
# ---------------------------------------------------------------------------
# backup.ksh:
# Sample DB2 backup shell script for 3264bit environments
# ---------------------------------------------------------------------------
# Task:
# Invokes a DB2 backup in order to perform a full offline backup of 
# all DB2 tablespaces 
# ---------------------------------------------------------------------------
#      *****     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 (alias) of the DB2 database is 
# assumed to be 'C21'.
#
# --------------------------------COMMAND------------------------------------
su - db2c21 -c "db2 backup db C21
     load /usr/tivoli/tsm/tdp_r3/db264/libtdpdb264.a"