PHP Classes

Only Table backup

Recommend this page to a friend!

      MySQL Dump - database backup  >  All threads  >  Only Table backup  >  (Un) Subscribe thread alerts  
Subject:Only Table backup
Summary:I added a function for table backup
Date:2011-11-19 10:16:23

  1. Only Table backup   Reply   Report abuse  
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->saveToFile($this->file,"SET FOREIGN_KEY_CHECKS = 1;\n\n");
return true;