[Veritas-bu] backing up clearcase vobs
2003-09-10 15:57:22
Subject: |
[Veritas-bu] backing up clearcase vobs |
From: |
broller AT qpass DOT com (Ben Roller) |
Date: |
Wed, 10 Sep 2003 12:57:22 -0700 |
Here is how I do it.
#! /bin/sh
######################################################################
# bpstart_notify
#
# This script sends a message that the backup is starting
######################################################################
#
# History:
# Ben Roller 11/21/01 Initial implementation
######################################################################
#
class=$2
OUTF=/var/adm/syslog/clearcase_backup.log
if [ "$class" = "ClearCase_si" ]
then
for VobTag in BuildScripts Install Source SysEng Tools hornet unix
do
cd /vobs
echo "`date`: \c"
/usr/atria/bin/cleartool lock -c "Locked for backup."
vob:/vobs/
$VobTag
done >> $OUTF 2>&1
fi
if [ $class != "unknown" ]
then
/usr/bin/mailx -s "[$class] backup will occur momentarily..."
backupteam
< $OUTF
fi
exit 0
#! /bin/sh
######################################################################
# bpend_notify.perf
#
# This script sends a message that the backup is done
#
# History:
# Ben Roller 11/26/01 Initial implementation
#
class=$2
host=`hostname`
PERFDAT="/usr/openv/netbackup/db/error/daily_messages.log"
STATS=`grep $host $PERFDAT | grep Kbytes | tail -1 | awk '{ print $11, $12,
$13, $14, $15, $20, $21, $22, $23, $24}'`
if [ $class != "unknown" ]
then
echo $STATS | /usr/bin/mailx -s "[$class] backup complete Exit
Status = [$5]" backupteam
fi
-----Original Message-----
From: David Thome [mailto:drt8243 AT hotmail DOT com]
Sent: Wednesday, September 10, 2003 11:07 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] backing up clearcase vobs
I understand that if you plan on backing up clearcase vobs, you need to
lock the vob
back it up the filesystem
unlock it
Then go on to the next vob to backup
Anyone have a procedure complete with (bpstart_notify and bpend_notify)
scripts?
I have 10 vobs to backup.
Thank you in advance
_________________________________________________________________
Send and receive larger attachments with Hotmail Extra Storage.
http://join.msn.com/?PAGE=features/es
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|