Veritas-bu

[Veritas-bu] multi bpstart/bpend scripts test (NBU3.4) example

2003-09-18 14:04:25
Subject: [Veritas-bu] multi bpstart/bpend scripts test (NBU3.4) example
From: ida3248b AT post.cybercity DOT dk (ida3248b AT post.cybercity DOT dk)
Date: Thu, 18 Sep 2003 19:04:25 +0100
Hello All

As there have been a lot of interest in these scripts, I decided to mail 
them to the list.

These scripts are NOT tested with any kind of application/database, our 
customer decided to pay for a Netbackup-Extension after all.

But I think they should could get people started.

Regards
Michael

bpstart_notify

#
# Script for of test multi stream bpnotify scripts
#
# Michael Graff Andersen 
#
LOCKYES=`ls /tmp/.lock.*`
if [ -z "$LOCKYES" ]; then
echo "BEGIN BACKUP" >> /tmp/bpstart.log
fi
touch /tmp/.lock.$STREAM_NUMBER
echo $STREAM_NUMBER >> /tmp/bpstart.log


bpend_notify
#!/bin/ksh
#
# Script for of test multi stream bpnotify scripts
#
# Michael Graff Andersen 
#
echo $STREAM_NUMBER >> /tmp/bpend.log
rm /tmp/.lock.$STREAM_NUMBER
LOCKYES=`ls /tmp/.lock.*`
if [ -z "$LOCKYES" ]; then
echo "END BACKUP" >> /tmp/bpend.log
fi
--
Cybercity Webhosting (http://www.cybercity.dk)


<Prev in Thread] Current Thread [Next in Thread>