Hi: Let cron(8) run your script for you. Cron will happily email you the verbose output from rsync after its task has run. man cron man crontab man 5 crontab
On Tue, Dec 29, 2009 at 7:12 PM, Sébastien Arpin <sebar...@hotmail.com> wrote: > 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 > > > > > > > > -- > Please use reply-all for most replies to avoid omitting the mailing list. > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > -- W. Oates -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html