Great question — answering as the UphillTech team:
you can check the return value of the rsync process and you can test for the existence of a maillog. You can use the mail(1) command to send mail from the shell.
Full answer by arved: https://superuser.stackexchange.com/a/557582 (CC BY-SA 3.0).
Need it done for your business? UphillTech.