[Veritas-bu] NBDB backup scripts?
2001-01-24 14:23:47
plus the space between the dash ' - ' and the "summary" command :)
it is always good to step through a script
-----Original Message-----
From: Gregory McAllister [mailto:gmcallis AT nortelnetworks DOT com]
Sent: 24 January, 2001 11:43 AM
To: McMurphy, Tim; 'Steve Moccio'
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] NBDB backup scripts?
i think there may be typo in the line:
bprdreg -terminate
i believe it is actually
bprdreq -terminate
Greg McAllister
-----Original Message-----
From: McMurphy, Tim [ mailto:Tim.McMurphy AT cdcgy DOT com
<mailto:Tim.McMurphy AT cdcgy DOT com> ]
Sent: Wednesday, January 24, 2001 1:33 PM
To: 'Steve Moccio'
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] NBDB backup scripts?
It is definately what I was looking for. Just out of curiosity do you run
this or do you use the built in ones?
-----Original Message-----
From: Steve Moccio [ mailto:svm AT lucent DOT com <mailto:svm AT lucent DOT
com> ]
Sent: 24 January, 2001 11:19 AM
To: david AT datastaff DOT com; Bob Bakh
Cc: W. Curtis Preston; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] NBDB backup scripts?
Hello all,
I too was in the advanced class and received a handout about the script. Not
sure if this is what you are looking for Bob.
Steve Moccio
Bell Labs
svm AT lucent DOT com
#!/bin/ksh
# find out how many currently queued, re-queued, or active jobs
# there are currently
QUEUED=`bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print $2}'`
REQUEUED=` bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print $3}'`
ACTIVE=` bpdbjobs - summary | sed -e '/MASTER/d' | awk '{print $4}'`
# If there are no queue, re-queued, or active jobs, then it is ok.
# to initiate netbackup DB backup
if [ $QUEUED -eq 0] && [ $REQUEUED -eq 0 ] && [ $ACTIVE -eq 0]
then
#Stop the request daemon
echo "Stopping the request Daemon"
bprdreg -terminate
echo "bprd Daemon terminated"
# Run netbackup database backup
echo "Running netbackup database backup"
bpbackupdb
echo "Database backup complete"
# restart request daemon
echo "Restarting request daemon"
bprd
else
echo "Could not initiate netbackup database backup
fi
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] NBDB backup scripts?, W . Curtis Preston curtis
- [Veritas-bu] NBDB backup scripts?, Lawrence , Bob bob . lawrence
- [Veritas-bu] NBDB backup scripts?, Bob Bakh bbakh
- [Veritas-bu] NBDB backup scripts?, David A . Chapa david
- [Veritas-bu] NBDB backup scripts?, McMurphy , Tim Tim . McMurphy
- [Veritas-bu] NBDB backup scripts?, Steve Quan sq01
- [Veritas-bu] NBDB backup scripts?, Steve Moccio svm
- [Veritas-bu] NBDB backup scripts?, McMurphy , Tim Tim . McMurphy
- [Veritas-bu] NBDB backup scripts?, Gregory McAllister gmcallis
- [Veritas-bu] NBDB backup scripts?,
McMurphy , Tim Tim . McMurphy <=
- [Veritas-bu] NBDB backup scripts?, W . Curtis Preston curtis
- [Veritas-bu] NBDB backup scripts?, KevinB
- [Veritas-bu] NBDB backup scripts?, W . Curtis Preston curtis
- [Veritas-bu] NBDB backup scripts?, David A . Chapa david
- [Veritas-bu] NBDB backup scripts?, David A . Chapa david
- [Veritas-bu] NBDB backup scripts?, Dennis Dwyer dfdwyer
- [Veritas-bu] NBDB backup scripts?, David A . Chapa david
- [Veritas-bu] NBDB backup scripts?, W . Curtis Preston curtis
- [Veritas-bu] NBDB backup scripts?, David A . Chapa david
- [Veritas-bu] NBDB backup scripts?, TWGIBBAR
|
|
|