Mysql Remote Backup
This article covers how to write a Mysql backup script for shell. First of all we need to create the file so open a new text file called backup.sh and set the first line as.
#!/usr/bin/expect
We are using an expect script because it is better suited to dealing with remote requests and responses. The script is going to run like a command and will use the following parameters.