Actually I guess I could ask, if I have been using linux for 7+ years and wanting to automate more, do I look to bash or something like perl. A co-worker swears by it, but just a .02 to throw out, if one is really easier or better to learn!
So with that, I have a remote server which I want to backup nightly, and report that things went well. I have a website setup, mysql, and basically after the rsync is complete I will curl the site with the ID which resets the 'last checked in time'. A cron scipt checks all the watchdog's, and if one is in an alert stage, it will email/sms, etc. depending on the function.
So the
rsync -av root@thrasher:/mnt/emc/maintenance/backups/ForecastDB/* /var/share/backup/database/forecast
curl
http://mymaintenancepage.php?wid=x (where x is the unique ID for that service). That part works fine, so I can check it in, see the time reset, etc. but if my bash script just has the rsync, then the curl, if rsync fails for some reason, does the bash script just continue to the next line and curl it?
If so, how do you change that, and if I have to do this with 5 servers, is it recommended to have 5 separate jobs or one in succession.
Thanks as I take on this new adventure