I tried without the . in front of the path before. Already gave it execute permission with: chmod +x backupmysql.sh
Then you did something wrong, or your script isn't compatible to run via cron.
if you run /path/to/script/script.sh , then it should work just fine. take off the > /dev/null 2>&1 part at the end and you'll see what's going wrong, in mail.
Make sure you have the root password for MySQL in your script, that could very easily be what's stopping it from running. When you're logged in, it will run, as you've got the environment set (ie: mysql configs), but when you're not, it will have issues as it's not.
WHMCS Guru - WHMCS addons, management, support and more. WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!