CodeIgniter Forums
Problem With Backup database with several table - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem With Backup database with several table (/showthread.php?tid=43988)



Problem With Backup database with several table - El Forum - 07-29-2011

[eluser]pengenbelajarCI[/eluser]
Hi, I'm using dbutil() to backup the database.

Code:
$this->load->dbutil();    
$prefs = array(
     'tables' => array('products','spesifications'),
     'format'      => 'zip'
);
$backup =& $this->dbutil->backup($prefs);

But even i declare that only 2 tables are backup, but it give all the table. And also, the file is on zip format, which make 'format' parameter on $prefs is work, but on on 'tables' parameter.

Anybody had an idea why this is happen?


Problem With Backup database with several table - El Forum - 07-29-2011

[eluser]pengenbelajarCI[/eluser]
I try to change the format to txt, and now it work. Just 2 table is dumped.

But i still need the output file to be compressed


Problem With Backup database with several table - El Forum - 07-29-2011

[eluser]pengenbelajarCI[/eluser]
Sorry, I've solved this..the problem is not on the dbutil...but my code after it Big Grin...