Bacula-users

[Bacula-users] Bacula messages.

2011-06-14 07:42:31
Subject: [Bacula-users] Bacula messages.
From: Krysztofiak <bacula-forum AT backupcentral DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 14 Jun 2011 04:39:31 -0700
Is it possible to call script instead of mail command in bacula director?

bacula-dir.conf:

something like this

Messages {
  Name = Standard
  mailcommand = "/usr/lib/messenger.pl %t %e %c %l"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) 
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = root@med-test = all, !skipped
  operator = root@med-test = mount
  console = all, !skipped, !saved
}

instead of

Messages {
  Name = Standard
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) 
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = root@med-test = all, !skipped
  operator = root@med-test = mount
  console = all, !skipped, !saved
}

where messenger.pl is my perl script.

+----------------------------------------------------------------------
|This was sent by p.krysztofiak AT pixel.com DOT pl via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
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>