rsync email notification on success and failure + Log

Sébastien Arpin sebarpin at hotmail.com
Tue Dec 29 17:12:17 MST 2009


Hi,

 

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.

 

This is my script:

 

!/bin/bash


rsync -av --delete --log-file=/home/duffed/RSyncLog/$(date +%Y%m%d)_rsync_Multimedia.log /media/Multimedia/ /media/MultimediaBackUp


 

Thanks a lot!

Sébastien 






 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20091230/8f0c5a33/attachment.html>


More information about the rsync mailing list