This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1EBBE.0BF20AD0
Content-Type: text/plain;
charset="iso-8859-1"
Here is a short script that will inventory four standalone drives, and then
duplicate any full backups found on those tapes. You could modify the
options after bpduplicate to just dupe the -ev mediaid, without referencing
any time periods, etc.. Look to the manual for the full documentation.
****************************************************************************
*************
goto body
**********************************************************************
duplicate_images
This script can be used by an adminstrator as a way to duplicate backups
that were done in the last X hours.
It has been designed to inventory the tapes in the library. A backup
command is issued to each tape requiring a duplication of any unduplicated,
primary, full backups.
This batch file may or may not require the -hoursago switch
***********************************************************************
:body
@setlocal ENABLEEXTENSIONS
:variables
::**************************************************************************
*******************************************************
::Inventory tapes in library and list the media in the temp directory
"c:\program files\VERITAS\Volmgr\bin\vmoprcmd" -d ds >
c:\temp\drive_inventory.txt
***************************
For /f "tokens=1,5" %%i in (c:\temp\drive_inventory.txt) DO "C:\Program
Files\VERITAS\NetBackup\bin\admincmd\bpduplicate" -dstunit res-labex-8mm -st
FULL -dp OffSite -L "C:\Program
Files\VERITAS\NetBackup\Logs\NBduplicate\Dup-%%j.log" -id %%j -hoursago 1000
-cn 1
net send DCI015wa2141678 Offsite Backups are finished
****************************************************************************
**************
-----Original Message-----
From: Andy Skates [mailto:andyskates AT iname DOT com]
Sent: Wednesday, April 24, 2002 4:08 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Tape duplication under NT
Does anyone have any scripts (other then
BPVault) to duplicate tapes in an NT
environment?
Andy Skates
email: andyskates AT iname DOT com
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
------_=_NextPart_001_01C1EBBE.0BF20AD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] Tape duplication under NT</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Here is a short script that will inventory four =
standalone drives, and then duplicate any full backups found on those =
tapes. You could modify the options after bpduplicate to just =
dupe the -ev mediaid, without referencing any time periods, etc.. =
Look to the manual for the full documentation.</FONT></P>
<P><FONT =
SIZE=3D2>***************************************************************=
**************************</FONT>
<BR><FONT SIZE=3D2>goto body</FONT>
</P>
<P><FONT =
SIZE=3D2>***************************************************************=
*******</FONT>
</P>
<P><FONT SIZE=3D2>duplicate_images</FONT>
</P>
<P><FONT SIZE=3D2>This script can be used by an adminstrator as a way =
to duplicate backups that were done in the last X hours. </FONT>
</P>
<P><FONT SIZE=3D2>It has been designed to inventory the tapes in the =
library. A backup command is issued to each tape requiring a =
duplication of any unduplicated, primary, full backups.</FONT></P>
<P><FONT SIZE=3D2>This batch file may or may not require the -hoursago =
switch</FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT =
SIZE=3D2>***************************************************************=
********</FONT>
<BR><FONT SIZE=3D2>:body</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>@setlocal ENABLEEXTENSIONS</FONT>
</P>
<P><FONT SIZE=3D2>:variables</FONT>
</P>
<P><FONT =
SIZE=3D2>::*************************************************************=
********************************************************************</FO=
NT></P>
<P><FONT SIZE=3D2>::Inventory tapes in library and list the media in =
the temp directory</FONT>
</P>
<P><FONT SIZE=3D2>"c:\program =
files\VERITAS\Volmgr\bin\vmoprcmd" -d ds > =
c:\temp\drive_inventory.txt</FONT>
</P>
<P><FONT SIZE=3D2>***************************</FONT>
</P>
<P><FONT SIZE=3D2>For /f "tokens=3D1,5" %%i in =
(c:\temp\drive_inventory.txt) DO "C:\Program =
Files\VERITAS\NetBackup\bin\admincmd\bpduplicate" -dstunit =
res-labex-8mm -st FULL -dp OffSite -L "C:\Program =
Files\VERITAS\NetBackup\Logs\NBduplicate\Dup-%%j.log" -id %%j =
-hoursago 1000 -cn 1</FONT></P>
<P><FONT SIZE=3D2>net send DCI015wa2141678 Offsite Backups are =
finished</FONT>
</P>
<BR>
<BR>
<P><FONT =
SIZE=3D2>***************************************************************=
***************************</FONT>
<BR><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Andy Skates [<A =
HREF=3D"mailto:andyskates AT iname DOT com">mailto:andyskates AT iname DOT
com</A>]</F=
ONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, April 24, 2002 4:08 AM</FONT>
<BR><FONT SIZE=3D2>To: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] Tape duplication under =
NT</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Does anyone have any scripts (other then</FONT>
<BR><FONT SIZE=3D2>BPVault) to duplicate tapes in an NT</FONT>
<BR><FONT SIZE=3D2>environment?</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>Andy Skates</FONT>
</P>
<P><FONT SIZE=3D2>email: andyskates AT iname DOT com</FONT>
<BR><FONT SIZE=3D2>-- </FONT>
</P>
<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Sign-up for your own FREE Personalized E-mail at =
Mail.com</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.mail.com/?sr=3Dsignup" =
TARGET=3D"_blank">http://www.mail.com/?sr=3Dsignup</A></FONT>
</P>
<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Veritas-bu maillist - =
Veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu" =
TARGET=3D"_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas=
-bu</A></FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C1EBBE.0BF20AD0--
|