<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You could search the task.with nstaskstatus attribute.<br>
<br>
$ ldapsearch -LLLx -h localhost -p <port> -D 'cn=directory
manager' -w <pw> -b "cn=backup,cn=tasks,cn=config"
"(cn=backup_*)" nstaskstatus<br>
<br>
When the task is done, you'll see the "Backup finished." status:<br>
dn: cn=backup_2012_4_5_9_35_35,cn=backup,cn=tasks,cn=config<br>
nstaskstatus: Backup finished.<br>
<br>
Another way would be checking the errors log, which logs the end of
the back up.<br>
<blockquote type="cite">[05/Apr/2012:09:32:09 -0700] - Backing up
file 31
(/var/lib/dirsrv/slapd-totoro/bak/totoro-2012_4_5_9_32_8/DBVERSION)<br>
[05/Apr/2012:09:32:09 -0700] - Backup finished.</blockquote>
Thanks,<br>
--noriko<br>
MATON Brett wrote:
<blockquote
cite="mid:20120405091312.9F57940A62@lists.fedoraproject.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi guys,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to tar up the backup set once a
db2bak.pl backup job has finished.<o:p></o:p></p>
<p class="MsoNormal">however because it writes an entry to the
LDAP and doesn’t wait for the backup to finish I was wondering
what the best way to determine when the backup has actually
finished?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I was thinking that I could<o:p></o:p></p>
<p class="MsoNormal">Ldapsearch at intervals for the backup cn
entry, when it’s not there anymore backup has finished<o:p></o:p></p>
<p class="MsoNormal">Ro maybe watch the audit log for a delete
action on the backup cn entry..<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any thoughts appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Brett<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"-->
<meta name="GENERATOR" content="TX_HTML32 11.0.211.501">
<span style="FONT-FAMILY: 'Verdana'; COLOR: #808080; FONT-SIZE:
7pt">
<p><span style="FONT-FAMILY: 'Verdana'; COLOR: #808080;
FONT-SIZE: 7pt">-------------------------------------------------------------------</span></p>
<span style="FONT-FAMILY: 'Verdana'; COLOR: #808080; FONT-SIZE:
6pt">
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><font
face="tahoma,arial,helvetica,sans-serif"><font size="1"><font
color="#669933"><span style="FONT-FAMILY: "
lang="EN-GB"><strong>GreeNRB<br>
</strong><em>NRB considers its environmental
responsibility and goes for green IT.</em> <br>
</span><i><span style="FONT-FAMILY: " lang="EN-GB">May
we ask you to consider yours before printing this
e-mail? </span></i><b><span style="FONT-FAMILY: "
lang="EN-GB"> </span></b></font></font></font> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><font
face="tahoma,arial,helvetica,sans-serif"><font size="1"><font
color="#000066"><b><span style="FONT-FAMILY: "
lang="EN-GB">NRB, daring to commit <br>
</span></b><i><span style="FONT-FAMILY: "
lang="EN-GB">This e-mail and any attachments,
which may contain information that is confidential
and/or protected by intellectual property rights,
are intended for the exclusive use of the
above-mentioned addressee(s). Any use (including
reproduction, disclosure and whole or partial
distribution in any form whatsoever) of their
content is prohibited without prior authorization
of NRB. If you have received this message by
error, please contact the sender promptly by
resending this e-mail back to him (her), or by
calling the above number. Thank you for
subsequently deleting this e-mail and any files
attached thereto.</span></i></font></font></font></p>
</span></span>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
</blockquote>
<br>
</body>
</html>