Allen Stowe wrote:
> Tomasz Klimaszewski wrote:
>> Hello
>> I installed backuppc 3.0.0 and work mostly with CGI interface.
>> I wounder if it possible and if yes I wounder how to configurate email
>> notifiaction about all yesterday backups.
>> My aim is to get:
>> one mail with info of each hosts and files it backuped up.
>> And one more thing mail with info about hosts didn't backup up any new
>> files.
>>

Here's a script I am using now for testing purposes:

Usage:
$Conf{DumpPostUserCmd} = '/path/to/mailwrapper $xferOK $type $client'

Script:
#!/bin/sh
if [[ $1 == "0" ]]; then
   STATUS=Failed
elif [[ $1 == "1" ]]; then
   STATUS=OK
else
   echo "No input status!"
   exit 1
fi

tail /var/lib/backuppc/pc/$3/LOG* | mail -s "Backup $STATUS for $2 on 
$3" backuppc

Note that the last line is wrapped in this mail.

/johan



-- 
Johan Ehnberg

Email: [EMAIL PROTECTED]
GSM:   +358503209688
WWW:   http://www.ehnberg.net/johan/

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to