[eluser]gtech[/eluser]
Hello, I am assuming you have a sql backup file with lots of sql statements in it. I don't think you can run a block of queries through $this->db->query($data), it only does one sql statement at a time.
you may have to call a system command to load your backup file in mysql (assuming thats your database). [url="http://particletree.com/notebook/backing-up-a-mysql-database-with-php/"](Click here for an example)[/url] it looks quite straight forward to do.. not sure on the implications of doing it like this though, worth a try. Note you can retrieve most of the parameters from the database config.