Veritas-bu

[Veritas-bu] NBU Master Server - DR planning

2005-10-20 04:58:20
Subject: [Veritas-bu] NBU Master Server - DR planning
From: dave.markham AT fjserv DOT net (Dave Markham)
Date: Thu, 20 Oct 2005 09:58:20 +0100
WEAVER, Simon wrote:

>Do you have this for Windows?
>
>Simon Weaver 
>Technical Support 
>Windows Domain Administrator 
>
>EADS Astrium 
>Tel: 02392-705354 
>
>Email: Simon.Weaver AT Astrium.eads DOT net 
>
>
>
>-----Original Message-----
>From: Dave Markham [mailto:dave.markham AT fjserv DOT net] 
>Sent: 19 October 2005 16:40
>To: WEAVER, Simon
>Cc: veritas-bu AT mailman.eng.auburn DOT edu
>Subject: Re: [Veritas-bu] NBU Master Server - DR planning
>
>
>WEAVER, Simon wrote:
>
>  
>
>>Hi Everyone
>>I am looking at ways to protect Netbackup, more importantly, all the 
>>configuration issue, policies and importantly, the tape images.
>>
>>I have Cataloge backups running after each scheduled backups that take 
>>place, and I have them set to alternate between tapes. Today I also ran 
>>a catalogue backup to a hard drive.
>>
>>But in order to get NBU online as FAST as possible, I wanted to look at 
>>doing an "offline" backup of the Veritas\Netbackup Folder.
>>
>>If I stop all Netbackup Services on the Win2k3 Server, what folders 
>>would be the essential ones to ensure I can recover netbackup as fast 
>>as possible?
>>
>>Appreciate any input into this.
>>
>>Simon Weaver
>>Technical Support 
>>Windows Domain Administrator 
>>
>>EADS Astrium
>>Tel: 02392-705354 
>>
>>Email: Simon.Weaver AT Astrium.eads DOT net
>>
>>
>>_______________________________________________
>>Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu 
>>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>>
>> 
>>
>>    
>>
>I just run this every day in a script from cron. As no backups are 
>running the catalogues wont change so you have accurate info. This script is
>pretty old and was from my 3.2 days so theres much better 
>ways of checking jobs are running.
>
>I also then sync this over to a DR site with a backup server with the 
>same name. Then i can bprecover the first site catalogues and the DR site
>will beable to read the tapes from the first site and restore to 
>alternate clients.
>
>Hope it helps :-
>
>
>
>#!/bin/sh
>#Dave M
>#Backs netbackup databases up to disk to ftp to DR site
>
>DPATH=/usr/openv/netbackup/Backup_DBs/dr_site
>COMMAND=/usr/openv/netbackup/bin/admincmd/bpbackupdb
>LOGFILE=/var/netbackup/backupdbs.log
>FAILSAFEHOUR=15
>someonewhocares=someone@somewhere
>
>
>if [ ! -d $DPATH ]
>then
>        mkdir -p $DPATH
>fi
>
>if [ ! -d /var/netbackup ]
>then
>        mkdir /var/netbackup
>fi
>
>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 300
>done
>
>rm $DPATH/*.gz
>
>echo "Backing up Netbackup Databases on `/usr/bin/date`" > $LOGFILE $COMMAND
>-dpath $DPATH >> $LOGFILE 2>&1 /usr/bin/ls -l $DPATH >> $LOGFILE echo
>"--------------------------------------" >>  $LOGFILE
>
>
>#Gzip IMAGEs to reduce space
>/usr/bin/gzip -f $DPATH/IMAGE1*
>
>/usr/bin/cat $LOGFILE | /usr/bin/mailx -s "`/usr/bin/uname -n` netbackup 
>datbases archive" $someonewhocares
>
>
>
>This email is for the intended addressee only.
>If you have received it in error then you must not use, retain, disseminate or 
>otherwise deal with it.
>Please notify the sender by return email.
>The views of the author may not necessarily constitute the views of EADS 
>Astrium Limited.
>Nothing in this email shall bind EADS Astrium Limited in any contract or 
>obligation.
>
>EADS Astrium Limited, Registered in England and Wales No. 2449259
>Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, 
>England
>
>  
>
Im sorry no :( but the bpbackupdbs command should be there somewhere and 
could probably be put in a batch file and scheduled??

Other than that install cygwin ( www.cygwin.com ) and you should be able 
to get unix shell scripts working.

The idea behind this is to keep backing the catalogues up to tape each 
day and i rotate between 2 tapes. The disk backups are done daily and so 
are up to date. Doing tape one day and disk the next could lead to you 
being a day behind in event of disaster and loosing one or the other.


Thanks
Dave