So I have been trying to get this cron job to work for a while now, pretty much just a cron to backup our database. The cron from command line works fine, but when we enter the cron into the cpanel crons job section we get an email saying that there has been an error.
This is our command;
cd /home/me/backups; /usr/bin/mysqldump -uDBUSER -pDBPASS DBNAME > mysqlbackup_`date +%m%d%y`.sql
This is the email we get when the cron is ran through cpanel;
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
Again, the cron job runs fine through command line. Any input would be appreciated.
Thanks
This is our command;
cd /home/me/backups; /usr/bin/mysqldump -uDBUSER -pDBPASS DBNAME > mysqlbackup_`date +%m%d%y`.sql
This is the email we get when the cron is ran through cpanel;
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
Again, the cron job runs fine through command line. Any input would be appreciated.
Thanks