Re: [BackupPC-users] Backuppc and emails
2009-03-31 10:04:37
Enrique Jiménez Campos wrote:
> how can i do that backuppc send email when the backuppc jobs is done? i
> already check the "BackupPC_sendEmail" script and this work it, but
> later when i try a full/incr backup the system dont send me an email :S
Hi!
I created a wrapper script:
#!/bin/sh
if [[ $1 == "0" ]]; then
STATUS=Failed
elif [[ $1 == "1" ]]; then
STATUS=OK
else
echo "No input status!"
exit 1
fi
LOGDATE=`date +%m%Y`
tail /var/lib/backuppc/pc/$3/LOG.$LOGDATE | mail -s "Backup $STATUS for
$2 on $3" backuppc
And start it in $Conf{DumpPostUserCmd} (see the docs for the arguments).
I have seen more advanced variants on this list, too.
/johan
------------------------------------------------------------------------------
_______________________________________________
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/
|
|
|