Welcome Guest, Not a member yet? Register   Sign In
Problem With Backup database with several table
#1

[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?
#2

[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
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB