I am using a Debian 7 Server. I created a shell script to be executed by crontab to save a mysqldump every day.
mysqldump *database* -u *mysql-user* -p*mysql-password* > /backup/mysql_backup/*filename*.sql
If typed directly on the command line, everything works fine. But if I execute the shell script itself (./backup.sh), I get no resulting file, but no error. The folder hat rights 777, the shell script is executable. I didn't even try to put the script into the crontab, when the script doesn't even work executed on the command line.
Does anybody know what to do?