Here are the steps that I user on my BackupPC servers to do just what you are looking for.
Under the main server config (Server | Edit Config) and the Backup Settings tab: DumpPostUserCmd: /etc/BackupPC/backupmail.sh $user $xferOK $host $type
RestorePostUserCmd: /etc/BackupPC/restoremail.sh $user $xferOK $host $fileList
The two .sh files are attached as a ZIP file.
NOW: the e-mails will contain a few lines from the log files, but I haven't figured out how to make it send the most RECENT log (the ones included are the LAST logs)
So in my e-mail, I have it filter out e-mails that have the words "Successful" and "Backup" into a folder for later review. That way any "failures" show up in my inbox for attention.
Also: be sure to create the "success" and "failure" directories under /etc/BackupPC (or comment out those lines in the .sh file)
Good luck!
Brian Erickson Information Systems Manager
APi Group, Inc. Direct: 651-604-2761 Main: 651-636-4320 Fax: 651-604-2781 Cell: 651-270-3507 www.apigroupinc.com
ok i admit its mainly for me. id like to check my email in the morning
and see that the machines backed up and not have to bother with
logging into the web interface. and i do have some customers
requesting to get an email letting them know everything is ok rather
than waiting for days and getting an email that there system hasnt
been backed up in X amount of days....
some people want to know, others dont care as long as its working.
On Wed, Jun 24, 2009 at 10:52 AM, Les Mikesell<lesmikesell AT gmail DOT com> wrote:
> Nick Smith wrote:
>> I would like to know if backuppc has the ability to not only send an
>> email if a backup hasn't complete in a set amount of time, but also
>> when a backup is completed?
>> If not, is it possible to submit a feature request?
>>
>> I would really like to be able to email clients that there computers
>> were successfully backed up each night.
>>
>> I have yet to find a good way to go about doing this, ive tried the
>> pre/post command, but it seems that they run even when a backup has
>> failed.
>>
>> Is there a good way to go about this? What are others doing to accomplish this?
>
> Basically, if you send email every day you'll train the users to ignore
> it and they won't read it when they get the one that says that backups
> have failed for three days in a row either.
>
> You could just email a link to the host summary page if you think they
> need it.
>
> --
> Les Mikesell
> lesmikesell AT gmail DOT com
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users AT lists.sourceforge DOT net
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>