Backup your database with a Shell script

I propose this little script for a recurring backup of your database:

#!/usr/bin/bash

date="`eval date +%Y%m%d`";
host="localhost"
username="mysql-user"
password="mysql-password"
database="database-name"
backup_source="/home/user/public_html/"
backup_dest="/home/user/backups/"

echo "Creating database backup"
mysqldump -q -e -h ${host} -u ${username} -p${password} ${database} | gzip - > ~/${backup_dest}${date}_db-backup.sql.gz
echo "Done"
echo "Creating file system backup"
cd ~/${backup_source}
tar cf - . | gzip - > ~/${backup_dest}${date}_files.tar.gz
echo "Done"
echo "Backup complete"