#!/bin/sh
#  $Id: sbc_post,v 1.4 2003/09/22 11:37:44 psl Exp $
#===============================================================================
#
#           SESAM POST procedure for UNIX clients
#
#===============================================================================
#
# Description: This procedure is called from SESAM after backup is finished;
#              it gives the user a possibility to do some special things after 
#              backup ( restart databases, send messages etc. ).
#
#              It is called with 12 parameters from the current SESAM backup:
#
#                $1 = Backup source 
#                $2 = Tape server interface
#                $3 = SESAM task name
#                $4 = Number of SESAM drive
#                $5 = Type of backup C_opy, F_ull, D_ifferential, I_ncremental
#                $6 = Status of backup ( 1 = ok, 0 = error )
#                $7 = Message text from backup
#                $8 = Execution counter ( = number of LIS-file )
#                $9 = Saveset ID
#                10 = Label of used media
#                11 = Name of mediapool
#                12 = Schedule
#
#               Returning status:
#                if this procedure ran OK
#                then echo "STATUS:OK"
#                else echo "STATUS:ERROR text"
#
# >>> This is a user programmable procedure <<<
#
#
#=====================================================================================


#=== Print call arguments =====================================

source=$1 
tape_server=$2
task=$3
drive_number=$4
backup_type=$5
backup_status=$6
backup_message=$7
exe_cnt=$8
saveset=$9
shift
label=$9
shift
pool=$9
shift
schedule=$9

echo source         = $source
echo tape_server    = $tape_server
echo task           = $task
echo drive_number   = $drive_number
echo backup_type    = $backup_type
echo exe_cnt        = $exe_cnt
echo saveset        = $saveset
echo label          = $label
echo pool           = $pool
echo schedule       = $schedule
echo backup_status  = $backup_status
echo backup_message = $backup_message


#=== Please insert your specific actions here =====================================

#echo STATUS:ERROR {message}
echo STATUS:OK
exit