Script Shell to make a database dump
backup_parent_dir="/home/your-directory"
mysql_user="your-mysql-user"
mysql_password="your-mysql-password"
chmod +x dump.sh
Run script using one of the following:
./filename.sh
sh filename.sh
bash script-name-here.sh