[Veritas-bu] catalog backup by cron
2002-06-21 19:46:25
I run a shell script something like this and kick off the catalog backup
from cron at 7AM. It loops until no backups are running or it's 3PM and
then does a backup. If backups are running when the catalog backup is run
you won't get the catalog data for the currently running backups.
Boyd
#!/bin/sh
FAILSAFEHOUR=15
while [ 1 ]
do
BUPROCS=`ps -ef | grep bpsched | grep -v grep | wc -l`
test $BUPROCS -eq 0 && break
HOUR=`date +%H`
test $HOUR -ge $FAILSAFEHOUR && break
sleep 60
done
/usr/openv/netbackup/bin/admincmd/bpbackupdb
-----Original Message-----
From: David Markham [mailto:dave.markham AT icl DOT net]
Sent: Friday, June 21, 2002 3:05 AM
To: 'David Le'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] catalog backup by cron
You would be best checking to see if all backups have finished yes,
otherwise theres some issue with how correct the catalougue backups are
you may also want to run bpbackupdb -dpath /somewhere/ to backup the
catalougues to disk.
Dave
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of David Le
Sent: 20 June 2002 21:44
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] catalog backup by cron
I am going to run my catalog backup out of cron. Is there any catches to my
doing it this way?
Is the command to start it off like this?
/usr/openv/netbackup/bin/admincmd/bpbackupdb
If the time to run out of cron during the time a backup is going on, will it
try to start off, sleep, or just die? I may need to have some logic to
check if any backups are running first.
Thank You
David
Get your free Web-based E-mail at http://www.startribune.com/stribmail
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|