Create mysqldump with date and gzip compress

mysqldump --single-transaction --quick --lock-tables=false -h HOST -u USER -p DBNAME | gzip > PROJECT-$(date +%F.%H%M%S).sql.gz

Views: 124