Bacula-users

Re: [Bacula-users] Customize messages

2012-11-08 11:11:50
Subject: Re: [Bacula-users] Customize messages
From: Carlo Filippetto <carlo.filippetto AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 8 Nov 2012 17:08:19 +0100
In practice,
I would be able to manage the information that is sent as body in the message with bsmtp, including when it sends e-mails to the operator (mount / warning)

Thank you




2012/11/8 Carlo Filippetto <carlo.filippetto AT gmail DOT com>
Hi all,
I have a custom script that runs instead of bsmtp

I would like to send the log of every job, but in the list of substitutions I haven't find it:

  • %% = %
  • %c = Client's name
  • %d = Director's name
  • %e = Job Exit code (OK, Error, ...)
  • %h = Client address
  • %i = Job Id
  • %j = Unique Job name
  • %l = Job level
  • %n = Job name
  • %r = Recipients
  • %s = Since time
  • %t = Job type (e.g. Backup, ...)
  • %v = Volume name (Only on director side)


how can I do?

This is my script

 mailcommand = "/bin/bash -c \"/usr/bin/php /opt/script/send_report.php '%e' '%l' '%n' '%t' '%r' $LogFile > /tmp/pippo\""    

I would like to send the information into the log, like 
 - backup dimensione
 - compression
 - Elapsed time

How can I take this ones?


thank you




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>