[Veritas-bu] RE:restore from duplicat
2002-05-10 14:32:44
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_01C1F851.132A6730
Content-Type: text/plain
You can just lookup the images on the tape then stuff work it into a loop
bpimmedia -media <tapenum> | awk '$1=="IMAGE" {print $4}'
Loop:
for bpid in `bpimmedia -media <tapenum> | awk '$1=="IMAGE" {print $4}'`
do
bpduplicate -npc <copy_on_tape_num> -backupid $bpid
done
You can get the copy number on the tape from the same bpimmedia output as
part of the FRAG field (field 9 is tapenum, field 2 is copy num).
-Mark
-----Original Message-----
From: Fariborz Behrouzi [mailto:fbehrouz AT futureshop DOT com]
Sent: Friday, May 10, 2002 11:33 AM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] RE:restore from duplicat
[Fariborz Behrouzi]
For restoring backup on a Duplicated tape just expire tape and All images
on this tape will considered as first copy
Fariborz Behrouzi
Hi,
Normally to restore from a duplicate you have to
specify the job id:
/usr/openv/netbackup/bin/admincmd/bpduplicate -npc ???
-backupid ???.
is there a way to do this whithaout specifying the
job id . in the case i want to restore all images on a
given tape ?
thank you in advance
__________________________________________________
Do You Yhoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com
--__--__--
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
End of Veritas-bu Digest
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
------_=_NextPart_001_01C1F851.132A6730
Content-Type: text/html
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=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] RE:restore from duplicat</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>You can just lookup the images on the tape then stuff =
work it into a loop</FONT>
</P>
<P><FONT SIZE=3D2>bpimmedia -media <tapenum> | awk =
'$1=3D=3D"IMAGE" {print $4}'</FONT>
</P>
<P><FONT SIZE=3D2>Loop:</FONT>
<BR><FONT SIZE=3D2>for bpid in `bpimmedia -media <tapenum> | awk =
'$1=3D=3D"IMAGE" {print $4}'`</FONT>
<BR><FONT SIZE=3D2>do</FONT>
<BR><FONT SIZE=3D2> bpduplicate -npc <copy_on_tape_num> =
-backupid $bpid</FONT>
<BR><FONT SIZE=3D2>done</FONT>
</P>
<P><FONT SIZE=3D2>You can get the copy number on the tape from the same =
bpimmedia output as part of the FRAG field (field 9 is tapenum, field 2 =
is copy num).</FONT></P>
<P><FONT SIZE=3D2>-Mark</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Fariborz Behrouzi [<A =
HREF=3D"mailto:fbehrouz AT futureshop DOT com">mailto:fbehrouz AT futureshop
DOT com</=
A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, May 10, 2002 11:33 AM</FONT>
<BR><FONT SIZE=3D2>To: 'veritas-bu AT mailman.eng.auburn DOT edu'</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] RE:restore from =
duplicat</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=3D2>[Fariborz Behrouzi] </FONT>
<BR><FONT SIZE=3D2>For restoring backup on a Duplicated tape just =
expire tape and All images</FONT>
<BR><FONT SIZE=3D2>on this tape will considered as first copy</FONT>
</P>
<P><FONT SIZE=3D2>Fariborz Behrouzi</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Hi,</FONT>
<BR><FONT SIZE=3D2>Normally to restore from a duplicate you have =
to</FONT>
<BR><FONT SIZE=3D2>specify the job id:</FONT>
</P>
<P><FONT SIZE=3D2>/usr/openv/netbackup/bin/admincmd/bpduplicate -npc =
???</FONT>
<BR><FONT SIZE=3D2>-backupid ???.</FONT>
</P>
<P><FONT SIZE=3D2> is there a way to do this whithaout specifying =
the</FONT>
<BR><FONT SIZE=3D2>job id . in the case i want to restore all images on =
a</FONT>
<BR><FONT SIZE=3D2>given tape ?</FONT>
</P>
<P><FONT SIZE=3D2> thank you in advance</FONT>
</P>
<P><FONT =
SIZE=3D2>__________________________________________________</FONT>
<BR><FONT SIZE=3D2>Do You Yhoo!?</FONT>
<BR><FONT SIZE=3D2>Yahoo! Shopping - Mother's Day is May 12th!</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://shopping.yahoo.com" =
TARGET=3D"_blank">http://shopping.yahoo.com</A></FONT>
</P>
<BR>
<P><FONT SIZE=3D2>--__--__--</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>
<BR>
<P><FONT SIZE=3D2>End of Veritas-bu Digest</FONT>
<BR><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_01C1F851.132A6730--
|
|
|