Re: [Networker] Starting a savegroup via a script
2010-01-25 15:23:21
Stan,
At the bottom of this message is the script I use on Solaris 7 to start a
backup of our Oracle redo logs archives when the file system gets too full.
There's more to it than just this but this is the part that starts the
savegroup. We're still running NetWorker 7.2.1 on the client but the server is
running 7.5.1.
Hope this helps.
Dave
Dave Werth
Garmin AT, Inc.
Salem, Oregon
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of STANLEY R. HORWITZ
Sent: Monday, January 25, 2010 11:54 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] Starting a savegroup via a script
Greetings everyone;
I could have swore my question came up on this list before, but searching the
archives hasn't been fruitful.
What I need to know is how to start a savegroup from a script that is run on a
Linux box using NetWorker 7.4.4 (both client and server). Ideally, I would like
to have the script pause until the entire savegroup is finished so I know when
to proceed to the next step in the script.
Thanks,
Stan
=====
# Save oracle archived redo log files through NSR commands.
#
ORACLE_HOME=/opt/apps/oracle
WRK_DIR=/scripts/sscr/backup_scripts
export ORACLE_HOME WRK_DIR
# start oracle redo logs save
echo "
. type: NSR group;
name: redologs
update Autostart: Start now" | nsradmin -s <nsrserver> -i -
# Check status, wait until done
StatF=/tmp/RDLstat$$.tmp
sgDone=0
while [ sgDone -eq 0 ]
do
sleep 30
echo "
show status
print type: NSR group;
name: redologs" | nsradmin -s <nsrserver> -i - > $StatF
#
if grep "status: idle;" $StatF
then
sgDone=1
fi
done
# clean up
rm -f $StatF
echo "savegrp done"
SaveStat=$?
echo ""
# All done.
--------------------------------------------------------------------------
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient. If you are not the intended recipient, please be
aware that any disclosure, copying, distribution or use of this e-mail or any
attachment is prohibited. If you have received this e-mail in error, please
contact the sender and delete all copies.
Thank you for your cooperation.
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|