I added to your script by taking section H and tweaked the echos a little in order to have a status email automagically sent through crontab.
To edit cron job:
example running every 30 minutes:
*/30 * * * * /root/scripts/datasynccheck.sh
example of script. some variables will need to be edited for appropriate information