I've had my AutoMySQLBackup script running on crontab without issues for years now. About a week ago, I accidentally emptied out my entire home folder (where the script / backups are stored). I downloaded the latest version of AutoMySQLBackup and put all the login / storage folder information back in the file.
For some reason, the file will no longer run via crontab - but runs perfectly fine when I run it manually.
Crontab:
Error:
Line 508 :
Like I mentioned, if I run it manually it works perfectly. When crontab fires, I get nothing but errors. Any ideas?
For some reason, the file will no longer run via crontab - but runs perfectly fine when I run it manually.
Crontab:
Code:
2 0 * * * /usr/home/backup/automysqlbackup.sh
Code:
###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
/usr/home/backup/automysqlbackup.sh: line 508: --user=backup: command not found
Code:
${MYSQLDUMP} --user=${USERNAME} --password=${PASSWORD} --host=${DBHOST} ${OPT} ${1} > ${2}
Like I mentioned, if I run it manually it works perfectly. When crontab fires, I get nothing but errors. Any ideas?