https://www.sutenm.com/shell-script-backup-mysql/
Shell Script Backup MySQL