On Wed, Jun 06, 2007 at 10:51:08AM -0400, Randy Grugan wrote: > I attempted to search the email list archives but they appear to be > not working properly. I have Backuppc working smoothly now for some > time but I have not been able to get the email notification function > to work. I am hoping to have Backuppc email me when a backup job is > complete whether or not it encountered errors. I just want email > confirmation that the backup took place and what the result was. > > I do have postfix setup and working properly on the same server as > Backuppc. I also have the appropriate settings configured in the main > configuration file on who to send email notifications to. Any > assistance with resolving this sticky point would be greatly > appreciated.
Something similar was on the list recently. Here's what I ended up doing: In config.pl: $Conf{DumpPostUserCmd} = '/usr/local/bin/backuppc_mail.sh $xferOK $host $type $user'; And the contents of /usr/local/bin/backuppc_mail.sh is simply: #!/bin/sh /usr/bin/mailx root -s "Backuppc status $1 $2 [${3}]" </dev/null You can make it as simple or as complex as you need. For me, I just look at the subject and don't worry about the body. Status 1 is success. HTH, Dale ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/