i am also of the opinion that solving the database import is the best solution. the fact that you had a problem (i'm guessing) there is more about the mysql config than of your db backup. a full on db backup is always, IMO, your best solution.
if you want to do a script; i too am not a fan of hard coded table names in a file.
you can get all of the your table names by using a php script as such:
PHP Code:
require 'includes/application_top.php';
$name = 'Tables_in_' . DB_DATABASE;
$tables = $db->Execute('show tables');
foreach ($tables as $table) {
// here you can do you backup of each table
echo "-------->" . $table[$name] . "<---------<br>";
}
hopefully that gives you enough to go on.
Bookmarks