--0-559563953-1136910641=:57352
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I found this some where can not remeber where but I changed it to use it for
Pervasive database backups. might help.
Here an example you might be able to use:
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 for the class shut down the service
@rem if your not sure of the exact name to use for the net stop command,
type net start from a command prompt to get a list!
@if %STREAM_NUMBER%==1 net stop "NAV Auto-Protect"
@rem END BPSTART_NOTIFY.BAT
bpend_notify.bat
****************
@rem the following is used to start a service 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 :Startnav
goto EOF
:Startnav
net start "NAV Auto-Protect"
@rem END BPEND_NOTIFY.BAT
This assumes you only want the service restarted after ALL backups/streams
are finished on the client, regardless of schedule/class.
If you need a service stopped/restarted specific to a class/schedule then
you need to:
1) change the name of bpstart_notify and bpend_notify to the following
format:
bpstart_notify.classname.schedule.bat
bpend_notify.classname.schedule.bat
2) Point the files created in the above scripts to a unique directory.
Thanks
R. Andrew Johnson
---------------------------------
From: WEAVER, Simon [mailto:simon.weaver AT astrium.eads DOT net]
Sent: Tuesday, January 10, 2006 3:45 AM
To: 'bobbyrjw AT bellsouth DOT net'; 'Paul Keating'; veritas-bu AT
mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Win21k script to stop AV service during backup &
restart when fin ished
Bobby
Is there any documentation to support this? Also, did try what Paul said, and
nothing happened :(
Did I miss something? In the scipt it shows NET STOP <name of service>
Simon Weaver
Technical Support
Windows Domain Administrator
EADS Astrium
Tel: 02392-708598
Email: Simon.Weaver AT Astrium.eads DOT net
-----Original Message-----
From: Bobby Williams [mailto:bobbyrjw AT bellsouth DOT net]
Sent: 09 January 2006 22:47
To: 'Paul Keating'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Win21k script to stop AV service during backup &
restart when fin ished
The below will work.
However, Trend Micro told us not to backup their software with netbackup. It
would not restore.
We put the Trend Micro directory in our exclude lists.
Bobby Williams
2205 Peterson Drive
Chattanooga, Tennessee 37421
423-296-8200
---------------------------------
From: veritas-bu-admin AT mailman.eng.auburn DOT edu [mailto:veritas-bu-admin
AT mailman.eng.auburn DOT edu] On Behalf Of Paul Keating
Sent: Monday, January 09, 2006 9:09 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Win21k script to stop AV service during backup &
restart when fin ished
Create a file called bpstart_notify.bat, and bpend_notify.bat in C:\program
files\veritas\netbackup\bin (or wherever your netbackup client is installed.)
The "start" batch file will be run before a backup starts, and the end batch
file will run after the backup completes.
Paul
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu [mailto:veritas-bu-admin
AT mailman.eng.auburn DOT edu] On Behalf Of WEAVER, Simon
Sent: January 9, 2006 8:59 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Win21k script to stop AV service during backup & restart
when fin ished
Guys
In Arcserve, I was able to produce a small .cmd script to stop services for
applications that was having trouble being written to while a backup was run.
Can I do the same sort of thing in Netbackup?
My problem is this; there is an application called TREND MICRO that I just
seem to be unable to get Netbackup to backup!! the files are either reporting
access denied or in use by another process.
I have not tried VSS yet, as this in itself has been very problematic (if
anyone has suggestions on VSS in Netbackup, would love to share ideas on this!)
So I thought I would look at stopping the service while the backup runs and
then re-start the service when the backup completes, regardless of its status
(ie 0,1,196 ect)
Can anyone help? Master is Win2k3 and client is Win2k3
Thanks
Simon Weaver
Technical Support
Windows Domain Administrator
EADS Astrium
Tel: 02392-708598
Email: Simon.Weaver AT Astrium.eads DOT net
---------------------------------
Yahoo! Photos ? Showcase holiday pictures in hardcover
Photo Books. You design it and we?ll bind it!
--0-559563953-1136910641=:57352
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #1010ff 2px solid"> <DIV class=OutlookMessageHeader lang=en-us
dir=ltr align=left>I found this some where can not remeber where but I
changed it to use it for Pervasive database backups. might help.</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">Here an example you
might be able to use:<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE:
10pt">bpstart_notify.bat<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier
New" size=2><SPAN style="FONT-SIZE:
10pt">******************<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> creates a file associated with each stream running
on the client<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@echo
href="mailto:@echo">@echo</A> "" >
c:\temp\backup\%1.%STREAM_PID%<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> if this is the first stream running for the class
shut down the service<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier
New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> if your not sure of the exact name to use for the
net stop command,<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">type net start from a command prompt to
get a list!<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier
New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@if
href="mailto:@if">@if</A> %STREAM_NUMBER%==1 net stop "NAV
Auto-Protect"<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> END
BPSTART_NOTIFY.BAT<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE:
10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE:
10pt">bpend_notify.bat<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier
New" size=2><SPAN style="FONT-SIZE:
10pt">****************<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier
New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> the following is used to start a service when ALL
backups/streams<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> are
completed on a client<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier
New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@del
href="mailto:@del">@del</A>
c:\temp\backup\%1.%STREAM_PID%<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@if
href="mailto:@if">@if</A> not exist c:\temp\backup\%1.* goto
:Startnav<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">goto
EOF<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt">:Startnav<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">net start "NAV
Auto-Protect"<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt"><A title=mailto:@rem
href="mailto:@rem">@rem</A> END
BPEND_NOTIFY.BAT<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE:
10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE: 10pt">This assumes you only want the service
restarted after ALL backups/streams<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">are finished on the
client, regardless of schedule/class.<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">If you need a service
stopped/restarted specific to a class/schedule
then<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt">you need to:<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">1) change the name of
bpstart_notify and bpend_notify to the
following<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE:
10pt">format:<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New"
size=2><SPAN style="FONT-SIZE:
10pt">bpstart_notify.classname.schedule.bat<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE:
10pt">bpend_notify.classname.schedule.bat<o:p></o:p></SPAN></FONT></PRE><PRE><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">2) Point the files
created in the above scripts to a unique
directory.<o:p></o:p></SPAN></FONT></PRE></DIV> <DIV
class=OutlookMessageHeader lang=en-us dir=ltr align=left> </DIV> <DIV
class=OutlookMessageHeader lang=en-us dir=ltr align=left>Thanks</DIV> <DIV
class=OutlookMessageHeader lang=en-us dir=ltr align=left>R. Andrew
Johnson</DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr
align=left> </DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr
align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> WEAVER,
Simon [mailto:simon.weaver AT astrium.eads DOT net] <BR><B>Sent:</B> Tuesday,
January 10, 2006 3:45 AM<BR><B>To:</B> 'bobbyrjw AT bellsouth DOT net'; 'Paul
Keating';
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu]
Win21k script to stop AV service during backup & restart when fin
ished<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN
class=116354408-10012006><FONT face=Arial color=#0000ff
size=2>Bobby</FONT></SPAN></DIV> <DIV><SPAN class=116354408-10012006><FONT
face=Arial color=#0000ff size=2>Is there any documentation to support this?
Also, did try what Paul said, and nothing happened :(</FONT></SPAN></DIV>
<DIV><SPAN class=116354408-10012006><FONT face=Arial color=#0000ff size=2>Did I
miss something? In the scipt it shows NET STOP <name of
service></FONT></SPAN></DIV> <DIV> </DIV> <DIV> </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> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr
align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
Bobby Williams [mailto:bobbyrjw AT bellsouth DOT net] <BR><B>Sent:</B> 09
January 2006 22:47<BR><B>To:</B> 'Paul Keating'; veritas-bu AT
mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu] Win21k script to
stop AV service during backup & restart when fin ished<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN
class=515594522-09012006><FONT face=Arial color=#0000ff size=2>The below will
work.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN
class=515594522-09012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN
class=515594522-09012006><FONT face=Arial color=#0000ff size=2>However, Trend
Micro told us not to backup their software with netbackup. It would not
restore.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN
class=515594522-09012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN
class=515594522-09012006><FONT face=Arial color=#0000ff size=2>We put the
Trend Micro directory in our exclude lists.</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format --><BR><BR> <div><SPAN
lang=en-us><FONT face=Arial color=#000080>Bobby Williams</FONT></SPAN>
<BR><SPAN lang=en-us><FONT face=Arial color=#008080 size=2>2205 Peterson
Drive</FONT></SPAN> <BR><SPAN
lang=en-us><FONT face=Arial color=#008080 size=2>Chattanooga, Tennessee
37421</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#008080
size=2>423-296-8200</FONT></SPAN> </div> <DIV> </DIV><BR> <DIV
class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> veritas-bu-admin AT mailman.eng.auburn
DOT edu [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of
</B>Paul Keating<BR><B>Sent:</B> Monday, January 09, 2006 9:09 AM<BR><B>To:</B>
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu]
Win21k script to stop AV service during backup & restart when fin
ished<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN
class=189180714-09012006><FONT face=Arial color=#800000 size=2>Create a file
called bpstart_notify.bat, and bpend_notify.bat in C:\program
files\veritas\netbackup\bin (or wherever your netbackup client is
installed.)</FONT></SPAN></DIV> <DIV><SPAN class=189180714-09012006><FONT
face=Arial color=#800000 size=2></FONT></SPAN> </DIV> <DIV><SPAN
class=189180714-09012006><FONT face=Arial color=#800000 size=2>The "start"
batch file will be run before a backup starts, and the end batch file will run
after the backup completes.</FONT></SPAN></DIV> <DIV><SPAN
class=189180714-09012006><FONT face=Arial color=#800000
size=2></FONT></SPAN> </DIV> <DIV><SPAN class=189180714-09012006><FONT
face=Arial color=#800000 size=2>Paul</FONT></SPAN></DIV> <BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800000 2px solid;
MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=OutlookMessageHeader lang=en-us
dir=ltr align=left><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B> veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of
</B>WEAVER, Simon<BR><B>Sent:</B> January 9, 2006 8:59 AM<BR><B>To:</B>
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] Win21k
script to stop
AV service during backup & restart when fin ished<BR><BR></FONT></DIV>
<DIV><SPAN class=022585513-09012006><FONT face=Arial
size=2>Guys</FONT></SPAN></DIV> <DIV><SPAN class=022585513-09012006><FONT
face=Arial size=2>In Arcserve, I was able to produce a small .cmd script to
stop services for applications that was having trouble being written to while a
backup was run.</FONT></SPAN></DIV> <DIV><SPAN class=022585513-09012006><FONT
face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN
class=022585513-09012006><FONT face=Arial size=2>Can I do the same sort of
thing in Netbackup?</FONT></SPAN></DIV> <DIV><SPAN
class=022585513-09012006><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=022585513-09012006><FONT face=Arial size=2>My problem is this;
there is an application called TREND MICRO that I just seem to be unable to get
Netbackup to backup!! the files are either reporting access denied or in use by
another process.</FONT></SPAN></DIV> <DIV><SPAN
class=022585513-09012006><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=022585513-09012006><FONT face=Arial size=2>I have not tried
VSS yet, as this in itself has been very problematic (if anyone has suggestions
on VSS in Netbackup, would love to share ideas on this!)</FONT></SPAN></DIV>
<DIV><SPAN class=022585513-09012006><FONT face=Arial
size=2></FONT></SPAN> </DIV> <DIV><SPAN class=022585513-09012006><FONT
face=Arial size=2>So I thought I would look at stopping the service while the
backup runs and then re-start the service when the backup completes, regardless
of its status (ie 0,1,196 ect)</FONT></SPAN></DIV> <DIV><SPAN
class=022585513-09012006><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=022585513-09012006><FONT face=Arial size=2>Can anyone help?
Master is Win2k3 and client is Win2k3</FONT></SPAN></DIV> <DIV><SPAN
class=022585513-09012006><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN
class=022585513-09012006><FONT face=Arial size=2>Thanks</FONT></SPAN></DIV>
<DIV> </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>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><BR><p>
<hr size=1>Yahoo! Photos ? Showcase holiday pictures in
hardcover<br>
<a
href="http://us.rd.yahoo.com/mail_us/taglines/photobooks/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38088/*http://pg.photos.yahoo.com/ph//page?.file=photobook_splash.html">Photo
Books</a>. You design it and we?ll bind it!
--0-559563953-1136910641=:57352--
|