Veritas-bu

[Veritas-bu] RE: Win21k script to stop AV service during backup & restart when fin ished (WEAVER, Simon)

2006-01-11 09:34:57
Subject: [Veritas-bu] RE: Win21k script to stop AV service during backup & restart when fin ished (WEAVER, Simon)
From: pens18aj AT yahoo DOT com (Andrew Johnson)
Date: Wed, 11 Jan 2006 06:34:57 -0800 (PST)
--0-1777456394-1136990097=:93380
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Well we have it working for multipie streams here so it waits till all the 
streams are finised before it start here is our modified Pervasive agent backup 
scritpts.
   
  ***Bpstart_notify.bat
   
  @rem creates a file associated with each stream running on the client
@echo "" > c:\temp\backup\%1.%STREAM_PID%
@rem if this is the first stream running start the Pervasive Agent to create 
delta files for HDM. 
@if %STREAM_NUMBER%==1 goto :StartPV
goto EOF
:StartPV
BUTIL -STARTBU @D:\Apps\3MHIS\HDM\DATA\DATAFILE.TXT
@echo.|date|find /i "current" >> c:\temp\backup\startbk.log
@echo.|time|find /i "current" >> c:\temp\backup\startbk.log
@rem END BPSTART_NOTIFY.BAT
:EOF

   
  ****Bpend_notify.bat
   
  @Rem This will stop the Pervasive Agent and roll back the delta files into 
the database files for HDM.
@rem the following is used to stop the Pervasive Agent when ALL backups/streams
@rem are completed on a client
@del c:\temp\backup\%1.%STREAM_PID%
@if not exist c:\temp\backup\%1.* goto :StopPV
goto EOF
:StopPV
BUTIL -ENDBU @D:\Apps\3MHIS\HDM\DATA\DATAFILE.TXT
@echo.|date|find /i "current" >> c:\temp\backup\stopbk.log
@echo.|time|find /i "current" >> c:\temp\backup\stopbk.log
@rem END BPEND_NOTIFY.BAT
:EOF
  

    Hi All
  Ok I got the script to work, which is great - only one problem I see - the 
client has multiple paritions and is being backed up using ALL LOCAL DRIVES - 
although the services stop fine, it appears that as soon as one of the stream 
finishes, the services are bought back up, therefore when it comes to backing 
up the partition where Trend lives, the files are being skipped!
   
  I could use a sleep command to delay things, but is there a command to add to 
tell NBU to use the script when the final stream ends?
   
  Thanks
   
   
  Simon Weaver
Technical Support
Windows Domain Administrator 
  EADS Astrium
Tel: 02392-708598 
  Email: Simon.Weaver AT Astrium.eads DOT net 



R. Andrew Johnson

                        
---------------------------------
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.
--0-1777456394-1136990097=:93380
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Well we have it working for multipie streams here so it waits till all the 
streams are finised before it start here is our modified Pervasive 
agent&nbsp;backup scritpts.</DIV>  <DIV>&nbsp;</DIV>  
<DIV>***Bpstart_notify.bat</DIV>  <DIV>&nbsp;</DIV>  <DIV>@rem creates a file 
associated with each stream running on the client<BR>@echo "" &gt; 
c:\temp\backup\%1.%STREAM_PID%<BR>@rem if this is the first stream running 
start the Pervasive Agent to create delta files for HDM. <BR>@if 
%STREAM_NUMBER%==1 goto :StartPV<BR>goto EOF<BR>:StartPV<BR>BUTIL -STARTBU 
@D:\Apps\3MHIS\HDM\DATA\DATAFILE.TXT<BR>@echo.|date|find /i "current" &gt;&gt; 
c:\temp\backup\startbk.log<BR>@echo.|time|find /i "current" &gt;&gt; 
c:\temp\backup\startbk.log<BR>@rem END BPSTART_NOTIFY.BAT<BR>:EOF<BR></DIV>  
<DIV>&nbsp;</DIV>  <DIV>****Bpend_notify.bat</DIV>  <DIV>&nbsp;</DIV>  
<DIV>@Rem This will stop the Pervasive Agent and roll back the delta files into 
the database files for HDM.<BR>@rem the following is used to
 stop the Pervasive Agent when ALL backups/streams<BR>@rem are completed on a 
client<BR>@del c:\temp\backup\%1.%STREAM_PID%<BR>@if not exist 
c:\temp\backup\%1.* goto :StopPV<BR>goto EOF<BR>:StopPV<BR>BUTIL -ENDBU 
@D:\Apps\3MHIS\HDM\DATA\DATAFILE.TXT<BR>@echo.|date|find /i "current" &gt;&gt; 
c:\temp\backup\stopbk.log<BR>@echo.|time|find /i "current" &gt;&gt; 
c:\temp\backup\stopbk.log<BR>@rem END BPEND_NOTIFY.BAT<BR>:EOF</DIV>  
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; 
BORDER-LEFT: #1010ff 2px solid"><BR><BR>  <META content="MSHTML 6.00.2900.2180" 
name=GENERATOR>  <DIV><SPAN class=890331107-11012006><FONT face=Arial 
color=#0000ff size=2>Hi All</FONT></SPAN></DIV>  <DIV><SPAN 
class=890331107-11012006><FONT face=Arial color=#0000ff size=2>Ok I got the 
script to work, which is great - only one problem I see - the client has 
multiple paritions and is being backed up using ALL LOCAL DRIVES - although the 
services stop fine, it appears that as soon as one of the
 stream finishes, the services are bought back up, therefore when it comes to 
backing up the partition where Trend lives, the files are being 
skipped!</FONT></SPAN></DIV>  <DIV><SPAN class=890331107-11012006><FONT 
face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>  <DIV><SPAN 
class=890331107-11012006><FONT face=Arial color=#0000ff size=2>I could use a 
sleep command to delay things, but is there a command to add to tell NBU to use 
the script when the final stream ends?</FONT></SPAN></DIV>  <DIV><SPAN 
class=890331107-11012006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>  <DIV><SPAN class=890331107-11012006><FONT 
face=Arial color=#0000ff size=2>Thanks</FONT></SPAN></DIV>  <DIV>&nbsp;</DIV>  
<DIV>&nbsp;</DIV><!-- Converted from text/rtf format -->  <DIV><SPAN 
lang=en-gb><B><FONT face=Arial color=#0000ff size=2>Simon 
Weaver</FONT></B><FONT face=Arial><BR></FONT><B><FONT face=Arial color=#0000ff 
size=2>Technical Support</FONT></B><FONT
 face=Arial><BR></FONT><B><FONT face=Arial color=#0000ff size=2>Windows Domain 
Administrator</FONT></B><FONT face=Arial> </FONT></SPAN></DIV>  <DIV><SPAN 
lang=en-gb><B><I><FONT face=Arial size=2>EADS 
Astrium</FONT></I></B><I></I><FONT face=Arial><BR></FONT><B></B><B><I><FONT 
face=Arial size=2>Tel: 02392-70</FONT><FONT face=Arial 
size=2>8598</FONT></I></B><I></I><FONT face=Arial> </FONT></SPAN></DIV>  
<DIV><SPAN lang=en-gb><B><FONT face=Arial color=#ff0000 size=2>Email: 
Simon.Weaver AT Astrium.eads DOT net</FONT></B><FONT face=Arial> 
</FONT></SPAN></DIV><BR></BLOCKQUOTE><BR><BR><DIV><STRONG><FONT size=3><FONT 
color=#0000ff><FONT color=#ff0000>R.</FONT> <FONT color=#0000ff>Andrew 
</FONT></FONT><FONT color=#ff0000>Johnson<IMG 
src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/14.gif";></FONT></FONT></STRONG></DIV><p>
        
                <hr size=1>Yahoo! Photos<br> 
Got holiday prints? <a 
href="http://us.rd.yahoo.com/mail_us/taglines/holidayprints/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38089/*http://pg.photos.yahoo.com/ph//print_splash";>See
 all the ways</a> to get quality prints in your hands ASAP.
--0-1777456394-1136990097=:93380--

<Prev in Thread] Current Thread [Next in Thread>
  • [Veritas-bu] RE: Win21k script to stop AV service during backup & restart when fin ished (WEAVER, Simon), Andrew Johnson <=