This is a script usefull mostly to server admins, which will automatically detect all your mysql databases and backup/compress them.
By the way, I designed this script to use it in console(CLI). If you try to execute from web, please let me know how it works.
Code:
<?php //================================================ // //Auto backup your databases //Author: Nick Papanotas //Comments/feedback/troubleshooting: //http://www.webdigity.com/ // // This script propably wont run from web, except // if you modify it to add SUDO. //================================================
$backup_dir = dirname( __FILE__ ) . '/backups/';
$u = 'User'; $p = 'XXXX'; $db = 'Adatatbase';//This is just the name of a database just to make the query work. The script will backup all the databases that your use has access to.