rsync email notification on success and failure + Log

henri henri at
Tue Jan 5 14:47:25 MST 2010

> I have a bash script for rsync that should tranfer all my filer from one drive to the other.
> I would like to know how I can make the script sending me an email after the script is run and be able to know if it was a success or not and also if possible to include the log file.

You may want to have a look at LBackup. The latest alpha release includes support for backup specific mail templates.

If you want to use your backup script, rather than LBackup; you could use the lmail command to manage email delivery of your backup reports. 

If you are interested in rolling your own email delivery system then the source code for lmail may be helpful and is available from :

More information about the rsync mailing list