#! /bin/bash
mysqldump -uroot -p'password' databasename | gzip > /home/backup/database_`date +%Y%m%d%H%M`.sql.gz