Welcome Guest, Not a member yet? Register   Sign In
partial database downloads
#2

[eluser]Phil Sturgeon[/eluser]
That function in itself will only match whole tables. You could easily make a script to do backups in CSV or XML by doing something like:

Code:
$this->db->where('foo', $bar);
$query = $this->db->get('Donkeys');

$file_content = $this->dbutil->csv_from_result($query, ",", "\n");

$this->load->helper('file');
write_file(BASEPATH.'/backups/backup'.date('m').'-'.date('y'), $file_contents);

That all make sense? phpMyAdmin can easily read the backups from CSV... if I remember correctly :p


Messages In This Thread
partial database downloads - by El Forum - 11-05-2007, 09:22 AM
partial database downloads - by El Forum - 11-05-2007, 09:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB