I wrote this backup script. I run rsync, tar and a dump of mysql.I'd like to add some features like email alert or some kind of statistic.Here is the script:#!/bin/shDATE=`date +%D-%T`ORIGIN=/home/share/DEST=/media/BACKUP/mercurio/LOGFILE=log.txtecho =====Starting backup on $DATE ===== >> $LOGFILEecho ==Start rsync >> $LOGFILE rsync -arHu --delete --stats $ORIGIN $DEST/share >> $LOGFILEwaitif [ $? -eq 0 ]then        echo ==rsync ok  >> $LOGFILEelse        echo ==rsync ko   >> $LOGFILEfiecho ==Sart TAR >> $LOGFILEtar -czf $DEST`date +%y%m%d-%T`.tar.gz $ORIGINwaitif [ $? -eq 0 ]then        echo ==tar ok >> $LOGFILEelse        echo ==tar ko >> $LOGFILEfiecho ==Start DUMP >> $LOGFILEmysqldump -u root -ptoor --all-databases > ${DEST}databases/`date +%Y%m%d-%k:%M`.sqlwaitif [$? -eq 0 ]then        echo ==dump ok >> $LOGFILEelse         echo ==dump ko >> $LOGFILEfiecho =====End Bakcup===== >> $LOGFILE
How to improve this backup script?
bash;shell script;backup