How to Create Individual zipped Backup routine for MySQL
What is the most important task you need to do in regards to your application ? I making sure you have a backup of it !
In this post we will show how to create script that will generate a zipped backup of each of our MySQL schema.
1- Enable password-less log in from localhost
Create the file ".my.cnf" in you home folder and alter the permission on it as chmod 600
2- Create the script "zippedbkp" that will create individual zipped backups of your databases.
Make sure you alter the permission on it as "chmod 700 zippedbkp".
You will need to create the directories where the backup will be held and make sure the used user to run the backup will have
read & write rights on it.
3- Create a crontab routine to automatize your backup.
And that is it, just make sure you also create cleanup routine.
Also view this video tutorial to learn how to use the MySqlDump