This is a simple script that I wrote to backup my local databases. It uses terminal-notifier to create OS notifications and time_difference to report how much time it takes to execute a backup.
- Install the required gems:
gem install time_difference terminal-notifier
- Adjust the relevant variables:
databases
,path
- The connection variables are set in the
.my.cnf
file. I don't want your MySQL password in the script.