Veritas-bu

[Veritas-bu] Cancel a backup from the server's command line?

2006-03-27 09:39:00
Subject: [Veritas-bu] Cancel a backup from the server's command line?
From: jonas.blaberg AT mandator DOT com (Jonas Blåberg)
Date: Mon, 27 Mar 2006 16:39:00 +0200
This is a multi-part message in MIME format.

------_=_NextPart_001_01C651AC.306FFADA
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_002_01C651AC.306FFADA"


------_=_NextPart_002_01C651AC.306FFADA
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks to several helpful list readers telling me how to accomplish =
this:

=20

bpdbjobs -report | grep -vi done (or grep for the client name)

bpdbjobs -cancel <backup #> (the # in the first column from the above =
output)

=20

A follow-up question however: Since the NetBackup server is setup to =
make one automagic retry whenever a job fails, will there be any retry =
when cancelling using bpdbjobs -cancel?

=20

/bl=E5berg

=20

=20

=20

________________________________

From: veritas-bu-admin AT mailman.eng.auburn DOT edu =
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Jonas =
Bl=E5berg
Sent: den 27 mars 2006 15:05
To: Veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Cancel a backup from the server's command line?

=20

Hello!

=20

Is it possible to cancel an ongoing file system backup from the command =
line of the server? I know it is possible to do it from the =
administrator interface, but I have not found any command to do it...

=20

The server is using NBU 4.5 FP6 on Solaris.

=20

/Bl=E5berg

=20

=20

                            =20

_________________________________________

Jonas Bl=E5berg             =20
Mandator Infrastructure
Kruthusgatan 17
411 04  G=F6teborg
Sweden


E-Mail:                  Jonas.Blaberg AT mandator DOT com =
<mailto:Jonas.Blaberg AT mandator DOT com>=20

Phone:                  +46 (0)31 739 84 54

Switch:                 +46 (0)31 739 83 00
Fax:                      +46 (0)31 739 8401
www.mandator.se/infra

_________________________________________

=20

=20


------_=_NextPart_002_01C651AC.306FFADA
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[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 Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=3DSV link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Thanks to =
several helpful
list readers telling me how to accomplish =
this:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DGeorgia><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Georgia;color:blue'>bpdbjobs =
-report | grep
-vi done (or grep for the client name)</span></font><span =
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DGeorgia><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Georgia;color:blue'>bpdbjobs =
-cancel
&lt;backup #&gt; (the # in the first column from the above =
output)</span></font><span
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>A follow-up =
question
however: Since the NetBackup server is setup to make one automagic retry =
whenever
a job fails, will there be any retry when cancelling using bpdbjobs =
&#8211;cancel?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>/bl=E5berg<o:p></=
o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span lang=3DEN-US style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Jonas Bl=E5berg<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> den 27 mars 2006 =
15:05<br>
<b><span style=3D'font-weight:bold'>To:</span></b>
Veritas-bu AT mailman.eng.auburn DOT edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Veritas-bu] =
Cancel a
backup from the server's command line?</span></font><span =
lang=3DEN-US><o:p></o:p></span></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Is it possible to cancel an ongoing file =
system
backup from the command line of the server? I know it is possible to do =
it from
the administrator interface, but I have not found any command to do =
it&#8230;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>The server is using NBU 4.5 FP6 on =
Solaris.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>/Bl=E5berg<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><b><font size=3D1 color=3Dgray face=3DArial><span
style=3D'font-size:7.5pt;font-family:Arial;color:gray;font-weight:bold'>_=
________________________________________</span></font><font
color=3Dgray><span =
style=3D'color:gray'><o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><ST1:PERSONNAME w:st=3D"on"><b><font size=3D3 =
color=3Dgray
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;color:gray;font-weight:
bold'>Jonas =
Bl=E5berg</ST1:PERSONNAME>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></b><b><font color=3Dgray><span lang=3DEN-GB =
style=3D'color:gray;
font-weight:bold'><img width=3D98 height=3D17 id=3D"_x0000_i1025"
src=3D"cid:[email protected]"></span></font></b><b><font =
size=3D1
color=3Dgray face=3DArial><span =
style=3D'font-size:7.5pt;font-family:Arial;
color:gray;font-weight:bold'><br>
Mandator Infrastructure<br>
Kruthusgatan 17<br>
411 04&nbsp; G=F6teborg<br>
Sweden</span></font></b><o:p></o:p></p>

<p class=3DMsoNormal><b><font size=3D1 color=3Dgray face=3DArial><span
style=3D'font-size:7.5pt;font-family:Arial;color:gray;font-weight:bold'><=
br>
<span =
class=3Dgrame>E-Mail:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></font></b><span class=3Dgrame><b><font size=3D1 =
color=3Dgray
face=3DArial><span lang=3DEN-GB =
style=3D'font-size:7.5pt;font-family:Arial;
color:gray;font-weight:bold'><a =
href=3D"mailto:Jonas.Blaberg AT mandator DOT com"
title=3D"mailto:Magnus.Fogel AT mandator DOT com"><span =
lang=3DSV>Jonas.Blaberg AT mandator DOT 
com</span></a></span></font></b></span><=
b><font
size=3D1 color=3Dgray face=3DArial><span =
style=3D'font-size:7.5pt;font-family:Arial;
color:gray;font-weight:bold'><o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><span class=3Dgrame><b><font size=3D1 color=3Dgray =
face=3DArial><span
lang=3DEN-GB =
style=3D'font-size:7.5pt;font-family:Arial;color:gray;font-weight:
bold'>Phone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></b></span><b><font size=3D1 color=3Dgray =
face=3DArial><span
lang=3DEN-GB =
style=3D'font-size:7.5pt;font-family:Arial;color:gray;font-weight:
bold'>+46 (0)31 739 84 54</span></font></b><span =
lang=3DEN-US><o:p></o:p></span></p>

<p class=3DMsoNormal><b><font size=3D1 color=3Dgray face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:7.5pt;font-family:Arial;color:gray;font-weight:bold'>S=
witch:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+46 (0)31 739 83 00<br>
<span =
class=3Dgrame>Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>+46 (0)31 739 8401<br>
</span></font></b><b><font size=3D1 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
7.5pt;font-family:Arial;font-weight:bold'><a =
href=3D"http://www.mandator.se/infra";
title=3D"http://www.mandator.se/infra&#10;blocked::http://www.mandator.se=
/infra&#10;http://www.mandator.se/infra";>www.mandator.se/infra</a></span>=
</font></b><span
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><b><font size=3D1 face=3DArial><span lang=3DEN-GB
style=3D'font-size:7.5pt;font-family:Arial;font-weight:bold'>____________=
_____________________________</span></font></b><span
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_002_01C651AC.306FFADA--

------_=_NextPart_001_01C651AC.306FFADA
Content-Type: image/gif;
        name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>
Content-Description: image001.gif
Content-Location: image001.gif

R0lGODdhYgARAHcAACH+GlNvZnR3YXJlOiBNaWNyb3NvZnQgT2ZmaWNlACwAAAAAYgARAIUJBAUQ
DA0OCgsVEBEfGxwYFRUlIiMyLzBCPj9KR0hXVFRQTU1eW1x7eXlycHBoZWZubGxkYWJ2c3SCGBuG
HiGKJimIIyaSNjiPLzGYP0GcR0mMiouEgoKYlpajVVesZme7gYKgn5+vra68uru5t7izsrKpqKi3
trbGl5bMoaDAv7/QqafVsbDT09PJyMnPzs7Fw8TMy8vIx8fb2trY2NjjzMzt3t7v4eH27+/z6ej9
/Pzt7e3i4uL49/jy8vL///8G/8AbaFgbGo0o3G/JbDqf0Kh0Sq06a5NJBZXtejM2q3hMLkNrFksG
Ram43+7Jx0yv25toyyVlgcMtGDl3g4RVeRUpGH1+FX1hhZCRS2gVEygebYx9N5JWDQkOOlMtCgoq
d5QUHlyMFRQUj51TCgAIolIuAQIiqGmuKxqZbq8eIEo7I8nKyy9MPCTKKjxLz8swO0w6McoJAwmi
L9DJMj0/MxsEBRwjMUs7KiUiJTA+Sy3iI/STvhQaK43DNKRA8UGQiwIFBggIgFAhwwflTAAQQHGA
gRM/OggooGvjgRE/dijguJAAgW8/aOliuMAHBwAGDBQAkODHiwMFKG5EQOMHhP+NugogaPHjUKUP
/4ix0DDBQpgYJhM8UBB1KoEBp1xEgMAVQQAFP0IUIKDgwYMDARaEDUDWLE6UHbZCeGAgQIkRCaJG
2PDjQYADER5EQOvghwOLgQ8IgFDUV5wPSzGswEDB0Q+oA0xcvsrrxVXNIXmI9qs2xAACPX8wCIDg
B4fTM5asRvlDNI+bAzr8OFiA15IFA1ov6Qb28AFRCb429jNhTQ0UGDBUuMAJc4gfMD7/kPFZhwOZ
CE2WPk1UNesfEsgvUeDtRwsE4AvI1A0DIegfwBGU+0Hc8IAD9SAAgFpGvVEZCyCkoGAKSliHnXbc
FTAPS10VUNpYzZjXWnqoyRbwQE1+GfDAXAbk9mBvTOTHRH/G1SPDCe3koIgfanAhzFNXXZddZtul
E88ABYDmgAAXEpDhaq29RsAJM8wAXE3sHbCDDjscYKJnBXQwwzT5tTADDV4x4B+AT4AwwStoNmcj
BU2FcRAAOiqkGQxy8nCVAQccUFdNIWyUIS2tkQCkSekE98MGHuVJgAC6VXnaAGpxsBGhOekGAQBS
PqFDCh506ilknnYqSAsLIFCCewkkAFILqZLwwwkMpJrAAglI8EMJs8b2QwMIQCBKCAosICythfWw
Aa2p0uqbDAzQaqsPx8q6QAflbIAAA/XIou22UgQBADs=

------_=_NextPart_001_01C651AC.306FFADA--

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