Veritas-bu

[Veritas-bu] File written to disk during the backup ... does it get backed up?

2005-09-15 18:33:57
Subject: [Veritas-bu] File written to disk during the backup ... does it get backed up?
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Thu, 15 Sep 2005 16:33:57 -0600
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_01C5BA45.8FAC36A8
Content-Type: text/plain;
        charset="iso-8859-1"

My advice would be to change your method.
 
The bparchive command within netbackup will do what you want.  It'll backup
a set of files and then delete them if and only if the backup was
successful.
 
The complication is that it can't be scheduled as a regular job - it has to
be called by a user or cron or similar on the client.
 
The method would be to generate a list of files to be cleaned from your
server.  Feed this list into bparchive using the "-f" option (a file of
files option).  If the backup was successful, then they're deleted.  Any
error and they remain behind to be attempted again on your next cycle.
 
HTH - Mark

-----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 Mike Day
Sent: Thursday, September 15, 2005 1:45 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] File written to disk during the backup ... does it get
backed up?



I have a backup timing question.  If files are written to disk while the
backup is in progress will they be backed up during that backup window?  The
reason why I'm asking this is because I have a script that cleans up all the
files once the backup is completed.  

 

This involves database dumps and transaction logs.  I just ran into a case
where the DBA said his Oracle extract was still in progress when the backup
was working and the transaction log that was dumped to disk during the
backup may have been deleted by my bpend_notify script.  We did not find the
transaction file in the backup nor on the disk so I can only assume that the
script deleted the file.  If that's the case is there any easy way to have
my bpend_notify script only delete the files that were backed up?

 

Thanks in advance ... Mike Day

 


------_=_NextPart_001_01C5BA45.8FAC36A8
Content-Type: text/html;
        charset="iso-8859-1"
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:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1498" name=3DGENERATOR>
<STYLE>@font-face {
        font-family: PMingLiU;
}
@font-face {
        font-family: Comic Sans MS;
}
@font-face {
        font-family: @PMingLiU;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; =
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 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.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; =
FONT-FAMILY: "Comic Sans MS"; TEXT-DECORATION: none; mso-style-type: =
personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff size=3D2>My=20
advice would be to change your method.</FONT></SPAN></DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
bparchive command within netbackup will do what you want.&nbsp; It'll =
backup a=20
set of files and then delete them if and only if the backup was=20
successful.</FONT></SPAN></DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
complication is that it can't be scheduled as a regular job - it has to =
be=20
called by a user&nbsp;or cron or similar on the =
client.</FONT></SPAN></DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
method would be to generate a list of files to be cleaned from your=20
server.&nbsp; Feed this list into bparchive using the "-f" option (a =
file of=20
files option).&nbsp; If the backup was successful, then they're =
deleted.&nbsp;=20
Any error and they remain behind to be attempted again on your next=20
cycle.</FONT></SPAN></DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D902565521-15092005><FONT face=3DArial =
color=3D#0000ff size=3D2>HTH -=20
Mark</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  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>Mike=20
  Day<BR><B>Sent:</B> Thursday, September 15, 2005 1:45 =
PM<BR><B>To:</B>=20
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] =
File written=20
  to disk during the backup ... does it get backed =
up?<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3D"Comic Sans MS" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">I have a =
backup timing=20
  question. &nbsp;If files are written to disk while the backup is in =
progress=20
  will they be backed up during that backup window? &nbsp;The reason =
why I'm=20
  asking this is because I have a script that cleans up all the files =
once the=20
  backup is completed. &nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Comic Sans MS" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans =
MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Comic Sans MS" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">This involves =
database=20
  dumps and transaction logs. &nbsp;I just ran into a case where the =
DBA said=20
  his Oracle extract was still in progress when the backup was working =
and the=20
  transaction log that was dumped to disk during the backup may have =
been=20
  deleted by my bpend_notify script.&nbsp; We did not find the =
transaction file=20
  in the backup nor on the disk so I can only assume that the script =
deleted the=20
  file. &nbsp;If that's the case is there any <B><SPAN=20
  style=3D"FONT-WEIGHT: bold">easy</SPAN></B> way to have my =
bpend_notify script=20
  only delete the files that were backed =
up?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Comic Sans MS" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans =
MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Comic Sans MS" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Thanks in =
advance ... Mike=20
  Day<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Comic Sans MS" size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans =
MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML=
>

------_=_NextPart_001_01C5BA45.8FAC36A8--

<Prev in Thread] Current Thread [Next in Thread>