I am trying to run a cron job to backup my SQL database on a daily basis. This is the code I am using.
/usr/local/mysql/bin/mysqldump -uroot -ppassword --opt database > /path/to/directory/filename.sql
However, it returns me with the following error:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of file
Wondering what the solution is....