[Veritas-bu] Bpstart and multiple streams
2004-08-30 04:06:21
Subject: |
[Veritas-bu] Bpstart and multiple streams |
From: |
smpt AT freemail DOT gr (stefanos) |
Date: |
Mon, 30 Aug 2004 11:06:21 +0300 |
This is a multi-part message in MIME format.
------=_NextPart_000_001E_01C48E81.7E75A0E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I have one script like this, but my problem is what if the last two streams
finished the same time.
stefanos
_____
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Ueli
Schweizer
Sent: Saturday, August 28, 2004 8:49 AM
To: Stefanos Monovasios; veritas-bu AT mailman.eng.auburn DOT edu
Subject: AW: [Veritas-bu] Bpstart and multiple streams
Hi
I've written a simple bpstart_notify and bpend_notify script for multiple
datastream:
brpstart_notify:
# Additional code to find first stream
touch /tmp/$2.$3.$4_${STREAM_NUMBER}
if [ -z "`ls -1 /tmp/$2.$3.$4_* 2> /dev/null | grep -v
\"$2.$3.$4_${STREAM_NUMBER}\"`" ] then
###################################################
## YOUR CODE HERE
###################################################
fi
bpend_notify:
# Additional code to find last stream
rm /tmp/$2.$3.$4_${STREAM_NUMBER}
if [ -z "`ls -1 /tmp/$2.$3.$4_* 2> /dev/null`" ] then
##############################################
## YOUR CODE HERE
##############################################
fi
Hope you can use it.
Kind regards
Ueli Schweizer
Eidg. Wirtschaftsinformatiker FA
Certified VERITAS Professional
US-Consult GmbH
Boesch 43
CH-6331 Huenenberg
Switzerland
Phone: +41 41 781 5676 - Fax: +41 41 781 5677
ueli.schweizer AT us-consult DOT ch - ueli.schweizer AT backupvisual DOT com
www.us-consult.ch - www.backupvisual.com
_____
Von: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] Im Auftrag von Stefanos
Monovasios
Gesendet: Mittwoch, 25. August 2004 13:40
An: veritas-bu AT mailman.eng.auburn DOT edu
Betreff: [Veritas-bu] Bpstart and multiple streams
Hi,
Has anyone made a bpstart_notify and a bpend_notify scripts that can handle
multiple data streams backups ?
I want to make a cold database backup and I can't find a good way to do it.
stefanos
------=_NextPart_000_001E_01C48E81.7E75A0E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D=20
"urn:schemas-microsoft-com:vml" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 2.0cm =
70.85pt; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.E-MailFormatvorlage17 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DDE vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D826514807-30082004>I have one script like this, but my problem =
is what if=20
the last two streams finished the same time.</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D826514807-30082004></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D826514807-30082004>stefanos</SPAN></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> =
veritas-bu-admin AT mailman.eng.auburn DOT edu=20
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of =
</B>Ueli=20
Schweizer<BR><B>Sent:</B> Saturday, August 28, 2004 8:49 =
AM<BR><B>To:</B>=20
Stefanos Monovasios; =
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> AW:=20
[Veritas-bu] Bpstart and multiple streams<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Hi<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I’ve =
written a simple=20
bpstart_notify and bpend_notify script for multiple=20
datastream:<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">brpstart_notify:<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"># Additional code =
to find=20
first stream<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">touch=20
/tmp/$2.$3.$4_${STREAM_NUMBER}<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">if [ -z "`ls -1=20
/tmp/$2.$3.$4_* 2> /dev/null | grep -v =
\"$2.$3.$4_${STREAM_NUMBER}\"`" ]=20
then<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"> =20
###################################################<o:p></o:p></SPAN></FO=
NT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"> =20
## YOUR CODE HERE<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"> =20
###################################################<o:p></o:p></SPAN></FO=
NT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'">fi<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">bpend_notify:<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"># Additional code =
to find=20
last stream<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">rm=20
/tmp/$2.$3.$4_${STREAM_NUMBER}<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">if [ -z "`ls -1=20
/tmp/$2.$3.$4_* 2> /dev/null`" ] then<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"> =20
##############################################<o:p></o:p></SPAN></FONT></=
P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"> =20
## YOUR CODE HERE<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"> =20
##############################################<o:p></o:p></SPAN></FONT></=
P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'">fi<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hope you can =
use=20
it.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Kind=20
regards<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<P class=3DMsoNormal><STRONG><B><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Ueli=20
Schweizer</SPAN></FONT></B></STRONG><FONT color=3Dnavy><SPAN=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Eidg.=20
Wirtschaftsinformatiker FA</SPAN></FONT><FONT color=3Dnavy><SPAN=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Certified =
VERITAS=20
Professional</SPAN></FONT><FONT color=3Dnavy><SPAN=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" color=3Dnavy =
size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: =
navy"> <o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><STRONG><B><FONT face=3DArial color=3Dnavy =
size=3D3><SPAN=20
lang=3DEN-GB style=3D"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: =
Arial">US-Consult=20
GmbH</SPAN></FONT></B></STRONG><FONT color=3Dnavy><SPAN lang=3DEN-GB=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Boesch=20
43</SPAN></FONT><FONT color=3Dnavy><SPAN lang=3DEN-GB=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN =
lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">CH-6331=20
Huenenberg</SPAN></FONT><FONT color=3Dnavy><SPAN lang=3DEN-GB=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Switzerland</SPAN></FONT><FONT=20
color=3Dnavy><SPAN style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" color=3Dnavy =
size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: =
navy"> <o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Phone: +41 41 =
781 5676=20
- Fax: +41 41 781 5677</SPAN></FONT><FONT color=3Dnavy><SPAN=20
style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><A=20
href=3D"mailto:ueli.schweizer AT us-consult DOT ch">ueli.schweizer AT
us-consult DOT ch=
</A> - <A=20
href=3D"mailto:ueli.schweizer AT backupvisual DOT
com">ueli.schweizer@backupvisu=
al.com</A></SPAN></FONT><FONT=20
color=3Dnavy><SPAN style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><A=20
href=3D"http://www.us-consult.ch">www.us-consult.ch</A> - <A=20
href=3D"http://www.backupvisual.com">www.backupvisual.com</A></SPAN></FON=
T><FONT=20
color=3Dnavy><SPAN style=3D"COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" color=3Dnavy =
size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: =
navy"> </SPAN></FONT><o:p></o:p></P></DIV>
<DIV=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: =
medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue =
1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<DIV>
<DIV class=3DMsoNormal style=3D"TEXT-ALIGN: center" align=3Dcenter><FONT =
face=3D"Times New Roman" size=3D3><SPAN style=3D"FONT-SIZE: 12pt">
<HR tabIndex=3D-1 align=3Dcenter width=3D"100%" SIZE=3D2>
</SPAN></FONT></DIV>
<P class=3DMsoNormal><B><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">Von:</SPAN></FONT></B><FONT=20
face=3DTahoma size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">=20
veritas-bu-admin AT mailman.eng.auburn DOT edu=20
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B><SPAN=20
style=3D"FONT-WEIGHT: bold">Im Auftrag von </SPAN></B>Stefanos=20
Monovasios<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Gesendet:</SPAN></B> =
Mittwoch,=20
25. August 2004 13:40<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">An:</SPAN></B>=20
veritas-bu AT mailman.eng.auburn DOT edu<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Betreff:</SPAN></B> [Veritas-bu] Bpstart and =
multiple=20
streams</SPAN></FONT><o:p></o:p></P></DIV>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Hi,</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anyone made a =
bpstart_notify=20
and a bpend_notify scripts that can handle multiple data =
streams=20
backups ?</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to make a cold =
database=20
backup and I can't find a good way to do =
it.</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">stefanos</SPAN></FONT><o:p></o:p></P></DIV></DIV></DIV></BODY></HT=
ML>
------=_NextPart_000_001E_01C48E81.7E75A0E0--
|
|
|