Php class with 4 functions.
You have to change the
bd_model.phpConfig.
private $path = ""; // Example: app/lib/backups/
private $aplication = ''; // Name of your aplication
private $description = ''; // Description of your database
// Conection
private $database = '';
private $user = 'user';
private $host = 'localhost';
private $pass = '';
$m = new BDModel();
$result = $m->backup();This will return an array with the route
This function wait for a param filename
$m = new BDModel('filename');
$result = $m->restore();This will return an mensage
This function will delete a backup Wait for a param filename
$m = new BDModel();
$result = $m->delete('filename');Will return an mensage
This function will return all backups
$m = new BDModel();
$result = $m->getBackups();