Bacula-users

Re: [Bacula-users] How to send a bulk mail for backup success and filiers

2012-03-07 18:47:03
Subject: Re: [Bacula-users] How to send a bulk mail for backup success and filiers
From: Joseph Spenner <joseph85750 AT yahoo DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 7 Mar 2012 15:44:56 -0800 (PST)

From: Konstantin Khomoutov <flatworm AT users.sourceforge DOT net>
To: Rushdhi Mohamed <zmrushdhi AT gmail DOT com>
Cc: bacula-users <bacula-users AT lists.sourceforge DOT net>
Sent: Wednesday, March 7, 2012 4:37 AM
Subject: Re: [Bacula-users] How to send a bulk mail for backup success and filiers

On Wed, 7 Mar 2012 00:17:41 +0530
Rushdhi Mohamed <zmrushdhi AT gmail DOT com> wrote:

>> Bacula reporting problem (too many emails for a day , I need one mail
>> for success ( including backup details) & one email for failures.
>>
>> how can i configure bacula to send a bulk mail for at least backup
>> success messages.
>You'll need to do a bit of programming.
>The Message resource allows you to do rather flexible delivery of the
>messages Bacula generates: they can be delivered to files or passed to
>external programs. So with an appropriate Message resource, a set of
>shell scripts and a cron job you can arrange to do what you want.
>
>-----------------------------------------------------------------------------

You can pipe commands directly into bconsole, and capture the results.  For example, a simple perl script:

===
#!/usr/bin/perl

@messagesCommand=`echo "messages" | bconsole`;
===

Once you have the array, you can parse it out and email it.



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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>