-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How about list nextvol job=<jobname>?

Benoit Guguin wrote:
> Hi,
> 
> I receive messages from Bacula. Mail configuration is ok ;).
> 
> But my purpose is to have a message like "insert tape xxxx" after the end of 
> the job, and not when bacula detect a wrong tape.
> Perphaps I'm going wrong in the way I configure Bacula ... ;)
> 
> I've find a way to do what I want (ie bacula ask for the volume of the next 
> job) :
> * I'm running a Console programme from a shell script 
> ( 
> http://www.bacula.org/rel-manual/Bacula_Console.html#SECTION000209000000000000000
>  ). 
> * I ask bconsole to display the director status
> * I "parse" the response, and send a mail.
> 
> So my script to have the tape name for the next job is like this : 
> 
> 1)  interogate bconsole : 
> 
> /usr/bin/bconsole -c /etc/bacula/bconsole.conf<<END_OF_DATA
> @output /tmp/bconsole.out.tmp
> status director
> quit
> END_OF_DATA
> 
> 2) parse the response
> 
> #!/usr/bin/perl -w
> 
> open(LOG, "/tmp/bconsole.out.tmp");
> while (<LOG>) {
>         if(/(Save(\w+))\s+((\2)-.*)$/i) {
>                 print "$1 $3 ";
>         }
> }
> 
> 3) I send an email with the job name and the job volume
> 
> 
> I hope that can help you.
> 
> 
> Regards,
> 
> 
> Le Mercredi 12 Juillet 2006 14:09, Bill Moran a écrit :
>> In response to "Axel S. Gruner" <[EMAIL PROTECTED]>:
>>> Hi,
>>>
>>> Am Dienstag, den 11.07.2006, 10:33 +0200 schrieb Benoit Guguin:
>>>> Hi,
>>>>
>>>> I'm currently using Bacula 1.36 on a Debian Sarge.
>>>>
>>>> I've configured multiples backups on tapes.
>>>>
>>>> So my question is :
>>>> How can I configure Bacula to send a mail that ask the needed and
>>>> appropriated volume  (ie tape) for the next job on, and only on, the
>>>> tape device ?
>> Do you receive email messages from Bacula at all?  If your mail config is
>> set up properly, Bacula will email the configured address if it needs a
>> tape change, like this:
>>
>> 07-Jul 06:05 mindwipe-sd: Please mount Volume
>> "rotation0.year2006.tape000101.pitbpa0" on Storage Device "Ultrium"
>> (/dev/nsa0) for Job server-std.2006-07-06_23.05.00
> 

- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEtSommb+gadEcsb4RAs0tAJ9s26IgIUIAyQCBztJulcxugReELgCfffGA
wS+A4goRMTsXW/AITtJp1fc=
=LMo9
-----END PGP SIGNATURE-----



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to