<?php
//INclude
include_once("class.DBDump.php");
//Conection data
$host = "localhost";
$user = "user";
$pass = "pass";
$db = "database";
//Create the object
$dump = new DBDump($host, $db, $user, $pass);
//Set debuger on
$dump->setDebugMode(true);
//Destination
$dump->setPath("D:\\backups\\"); //El directorio DEBE EXISTIR!!!
//Tablas que no se copiar�n
$dump->quitTable(
array(
'temp',
'logs',
'temporal',
'session'));
//Mail it!
$dump->xMail = "me@domain.com";
//Backup!
$dump->dump();
?>
|