
Philipp - 2011-11-19 10:16:23
If you want to backup only one table (e.g. each time, the table was updated), than you can insert this function and call this instead of doDump
function tableDump($tablename) {
$this->saveToFile($this->file,"SET FOREIGN_KEY_CHECKS = 0;\n\n");
$this->getTableStructure($tablename);
$this->getTableData($tablename,$this->hexValue);
$this->saveToFile($this->file,"SET FOREIGN_KEY_CHECKS = 1;\n\n");
$this->closeFile($this->file);
return true;
}