[Veritas-bu] As promised
2007-08-02 18:00:27
A while back I was looking for a way to automate restores for
certification, below is how I run it. Still working out some bugs and
many thanks to the consultant who helped in this process:
#!/bin/sh
#
# What dir to restore the file on the destination client
#
DEST="/var/tmp/redirect_list" (create redirect list see example below)
MONTH=`date '+%m'`
TODAY=`date '+%d'`
YEAR=`date '+%y'`
RESTOREDAY=`expr $TODAY - 1`
#(Server Name)
CLIENTFILE="/tmp/freepg_data"
/usr/openv/netbackup/bin/bprestore -C (Source Client) -D (Destination
client) -L /tmp/status -R $DEST -s "$MONTH/$RESTOREDAY/$YEAR" -e
"$MONTH/$RESTOREDAY/$YEAR
" $CLIENTFILE
Change every thing in red. As for CLIENT add the server name.
#cat redirect_list
change / to /tmp/validation
Hope this helps someone it sure helps me. Any updates or modifications
please let me know, as I know it can be improved.
Thanks,
Matt
Matthew Johnson
System Backup Administrator
Information Technology
Operations
2835 N. Naomi Street
Burbank, CA 91504-2024
Tel. (818) 955-6357
Fax.
For information on our products and services, please visit
<http://www.entertainmentpartners.com/>
Disclaimer - August 2, 2007
This email and any attachments are confidential and intended solely for
VERITAS-BU AT mailman.eng.auburn DOT edu. If you are not a named addressee you
are prohibited from reviewing, printing, disseminating, distributing, copying
or altering this email or any part of it. If you have received this
communication in error, please notify the sender of the error immediately, do
not read or use the communication in any manner, destroy all copies, and delete
it from your system if the communication was sent via email. Warning: Although
Entertainment Partners has taken reasonable precautions to ensure no viruses
are present in this email, the recipient is responsible for checking for and
deleting viruses. Entertainment Partners does not accept responsibility for any
loss or damage arising from the use of this email or attachments.
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|