I have a bin/bash script that mysqldumps my sql database, when I run it everything goes well with filesize=3MB, but when crontab(as sudo) runs the script then the filesize is 20B
script
#!/bin/bash
cd /home/blades/backup/databases
DATE=$(date +"%d-%m-%Y_%H:%M:%S")
mysqldump -u username -h localhost database --single-transaction | gzip -9 > database.sql_$DATE.gz
and sudo crontab -e
30 04 * * * /home/blades/backup/backup
What amI doing wrong?