Tired of making MYSQL database backups one by one? If you are migrating to another server or want to do a monthly MYSQL database backup of all databases in your server, you can do so by using a script that will backup all of your databases at once.
Of course, you will want to save each database separately in case you just want to restore one at a time plus it will be easier when restoring.
Here’s a script you can use, replace password with your root password.
#!/bin/bash # webserverhacks.com USER="root" PASSWORD="password" OUTPUTDIR="." MYSQLDUMP="/usr/bin/mysqldu