Veritas-bu

[Veritas-bu] File listing for Fragment

2006-05-09 18:26:19
Subject: [Veritas-bu] File listing for Fragment
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Tue, 9 May 2006 16:26:19 -0600
This is a multi-part message in MIME format.

------_=_NextPart_001_01C673B7.987DC70B
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

No offense, but seeking to a single fragment & reading files is
netbackup's job.  The TOC you describe (associating fragment to file) is
the quick definition of Netbackup's image catalog.  You're starting to
write the application you've already bought.
=20
To answer your question, I think you're going to have to mine the
catalog directly for the info you're looking for.  Look under the
/usr/openv/netbackup/db/images/<client>/<timestamp>/<imagename>.f files
for the file to frag info.  If you're using the binary catalog, you'll
have to convert them.
=20
-M

________________________________

From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Steve
Cashman
Sent: Tuesday, May 09, 2006 2:53 PM
To: Andrew Wilkin
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] File listing for Fragment


Try bpimagelist -backupid (backup_id)

Steve
=20
On 5/5/06, Andrew Wilkin <Andrew.Wilkin AT lands.nsw.gov DOT au> wrote:=20

        Hi All,
        =20
        I'm after a away to extract the files that are contained within
an individual BackupId that has multiple "Fragments" (File number on a
Tape).
        =20
        If I have a single backup image and it spans many "Fragments" /
File Numbers, on the media, is there a way to extract a listing's of
those files from a single Fragment/File Number using a single backup id,
though the are multiple Fragments for that single backup? (sorry but
I've repeated myself here!)=20
        =20
        I know I can get a complete listing of a specific backup using
bpmedialist and give the backup id etc. But using the Images on Media
control( from the GUI), I can see the multiple Fragments on the Tape
with the File Numbers, so there must be a way somehow to relate this
back into the NetBackup DataBase to use it!=20
        =20
        This has come about from an historic NDMP system I've had to
recover from and for the particular directory, they are 27 Fragments,
and I know how to extract the NDMP backup using a SUN system, but I
didn't know which file on the tape to skip to. I have managed to extract
the data. But I'm hoping I can get a better solution to what I've done,
by creating a TOC for each of the Fragments and grep-ping for my data to
extract!=20
        =20
        Thanks
        =20

        Regards=20

        Andrew Wilkin
        Computer Systems Analyst=20

        Department of Lands=20
        Panorama Ave
        BATHURST, NSW, 2795, AUSTRALIA=20

        Ph: 61 2 6332 8397
        Fx: 61 2 6332 8457=20
        E-mail: Andrew.Wilkin AT lands.nsw.gov DOT au
        WEB: www.lands.nsw.gov.au <http://www.lands.nsw.gov.au/>  <
http://www.lands.nsw.gov.au <http://www.lands.nsw.gov.au/> >=20

        =20

        =20
        ***************************************************************
        This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender.=20

        Views expressed in this message are those of the individual
sender, and are not necessarily the views of the Department of Lands.

        This email message has been swept by MIMEsweeper for the
presence of computer viruses.
        ***************************************************************=20



------_=_NextPart_001_01C673B7.987DC70B
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D694311822-09052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>No offense, but seeking to a single fragment =
&amp; reading=20
files is netbackup's job.&nbsp; The TOC you describe (associating =
fragment to=20
file) is the quick definition of Netbackup's image catalog.&nbsp;=20
</FONT></SPAN><SPAN class=3D694311822-09052006><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>You're starting to write the application you've already=20
bought.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D694311822-09052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D694311822-09052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>To answer your question, I think you're going =
to have to=20
mine the catalog directly for the info you're looking for.&nbsp; Look =
under the=20
/usr/openv/netbackup/db/images/&lt;client&gt;/&lt;timestamp&gt;/&lt;image=
name&gt;.f=20
files for the file to frag info.&nbsp; If you're using the binary =
catalog,=20
you'll have to convert them.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D694311822-09052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D694311822-09052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>-M</FONT></SPAN></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>Steve=20
Cashman<BR><B>Sent:</B> Tuesday, May 09, 2006 2:53 PM<BR><B>To:</B> =
Andrew=20
Wilkin<BR><B>Cc:</B> =
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> Re:=20
[Veritas-bu] File listing for Fragment<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Try bpimagelist -backupid (backup_id)</DIV>
<DIV><BR>Steve<BR>&nbsp;</DIV>
<DIV><SPAN class=3Dgmail_quote>On 5/5/06, <B =
class=3Dgmail_sendername>Andrew=20
Wilkin</B> &lt;<A=20
href=3D"mailto:Andrew.Wilkin AT lands.nsw.gov DOT au">Andrew.Wilkin AT 
lands.nsw DOT go=
v.au</A>&gt;=20
wrote:</SPAN>=20
<BLOCKQUOTE class=3Dgmail_quote=20
style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc =
1px solid">
  <DIV style=3D"DIRECTION: ltr">
  <DIV><FONT face=3DArial size=3D2><SPAN>Hi All,</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN>I'm after a away to extract the =
files that=20
  are contained within an individual BackupId that has multiple =
"Fragments"=20
  (File number on&nbsp;a Tape).</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN>If I have a single backup image =
and it=20
  spans many "Fragments" / File Numbers, on the media, is there a way to =

  extract&nbsp;a listing's of those files from&nbsp;a =
single&nbsp;Fragment/File=20
  Number&nbsp;using a single backup id, though the are multiple =
Fragments for=20
  that single backup? (sorry but I've repeated myself here!)=20
</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN>I know I can get a complete =
listing of a=20
  specific backup using bpmedialist and give the backup id etc. But =
using the=20
  Images on Media control( from the GUI), I can see the multiple =
Fragments on=20
  the Tape with the File Numbers, so there must be a way somehow to =
relate this=20
  back into the NetBackup DataBase to use it! </SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN>This has come about from an =
historic NDMP=20
  system I've had to recover from and for the particular directory, they =
are 27=20
  Fragments, and I know how to extract the NDMP backup using a SUN =
system, but I=20
  didn't know which file on the tape to skip to. I have managed to =
extract the=20
  data. But I'm hoping I can get a better solution to what I've done, by =

  creating a TOC for each of the Fragments and grep-ping for my data to =
extract!=20
  </SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN>Thanks</SPAN></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>
  <P align=3Dleft><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial">Regards</SPAN><FONT=20
  size=3D2><SPAN style=3D"COLOR: black; FONT-FAMILY: Arial"> =
</SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT></P>
  <P><SPAN style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Andrew=20
  Wilkin</SPAN><SPAN style=3D"COLOR: black; FONT-FAMILY: =
Arial"><BR></SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Computer =
Systems=20
  Analyst </SPAN><SPAN style=3D"COLOR: black; FONT-FAMILY: Arial"><FONT=20
  size=3D2></FONT></SPAN></P>
  <P><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial">Department</SPAN><FONT=20
  size=3D2><SPAN style=3D"COLOR: black; FONT-FAMILY: Arial"> =
</SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">of Lands=20
  </SPAN></FONT><SPAN style=3D"COLOR: black; FONT-FAMILY: =
Arial"><BR></SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Panorama=20
  Ave</SPAN><SPAN style=3D"COLOR: black; FONT-FAMILY: =
Arial"><BR></SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">BATHURST, =
NSW, 2795,=20
  AUSTRALIA</SPAN><SPAN style=3D"COLOR: black; FONT-FAMILY: Arial"><FONT =
size=3D2>=20
  </FONT></SPAN></P>
  <P><SPAN style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial">Ph: 61 2=20
  6332 8397</SPAN><SPAN=20
  style=3D"COLOR: black; FONT-FAMILY: Arial"><BR></SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Fx: 61 =
2&nbsp;6332=20
  8457 </SPAN><SPAN style=3D"COLOR: black; FONT-FAMILY: =
Arial"><BR></SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">E-mail: <A =

  onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
  href=3D"mailto:Andrew.Wilkin AT lands.nsw.gov DOT au"=20
  target=3D_blank>Andrew.Wilkin AT lands.nsw.gov DOT au</A></SPAN><SPAN=20
  style=3D"COLOR: black; FONT-FAMILY: Arial"><BR></SPAN><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Arial">WEB:</SPAN><FONT=20
  size=3D2><U><SPAN style=3D"COLOR: black; FONT-FAMILY: Arial"> =
</SPAN></U><U><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"><A=20
  onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
  href=3D"http://www.lands.nsw.gov.au/"; =
target=3D_blank>www.lands.nsw.gov.au</A>=20
  &lt;<A onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
  href=3D"http://www.lands.nsw.gov.au/"; target=3D_blank>=20
  http://www.lands.nsw.gov.au</A>&gt;</SPAN></U><SPAN=20
  style=3D"COLOR: black; FONT-FAMILY: Arial"> </SPAN></FONT></P>
  <P>&nbsp;</P></DIV>
  <DIV>&nbsp;</DIV><FONT size=3D1>
  <P><FONT=20
  =
size=3D2>***************************************************************<=
BR></FONT><FONT=20
  size=3D2>This message is intended for the addressee named and =
</FONT><FONT=20
  size=3D2>may contain confidential information. If you are not the =
</FONT><FONT=20
  size=3D2>intended recipient, please delete it and notify the sender. =
</FONT></P>
  <P><FONT size=3D2>Views expressed in this message are those of the =
</FONT><FONT=20
  size=3D2>individual sender, and are not necessarily the views of =
</FONT><FONT=20
  size=3D2>the Department of Lands.</FONT></P>
  <P><FONT size=3D2>This email message has been swept by MIMEsweeper =
</FONT><FONT=20
  size=3D2>for the presence of computer viruses.<BR></FONT><FONT=20
  =
size=3D2>***************************************************************<=
/FONT>=20
  </P></FONT></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>

------_=_NextPart_001_01C673B7.987DC70B--