How to set up email sending after backup is finished (user-callback)

Asked by Xavi

I've read these instructions about how to set up the machine to send an email after the backup is finished:
http://ubuntuforums.org/showthread.php?t=1334287

However, that seemed to be with the format related to backintime previous to BIT 1.0, as it says here:
 http://backintime.le-web.org/documentation/usercallback/

Could you please write some documentation about how to set up this process of email sending with whatever format the user-callback has, please? (like, updating the content to that previous post and posting the recipe somewhere online - BIT documentation?)

Thanks heaps!

P.S. FYI, Luckybackup recently added the feature to send an email with the log of the process (error count, etc.) after the backup is finished, and it's very handy! (that's why I was looking to set something similar with BIT)

Question information

Language:
English Edit question
Status:
Answered
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dan (danleweb) said :
#1

For example (BIT >= 1.0), create the file "~/.config/backintime/user-callback" (and make it executable):

#!/bin/bash

if [ "2" == $3 ]; then
   echo "Backup ends"
   #send the email using sendmail or mutter and attach the file "~/.local/share/backintime/takesnapshot_$1.log"
fi

exit 0

Can you help with this problem?

Provide an answer of your own, or ask Xavi for more information if necessary.

To post a message you must log in.