public function dump($filename)
{
$commandLine = $this->getCliCommand($this->config->dump_command, $filename);
$retval = exec($commandLine, $result, $return);
if ($retval === false || $return != 0) {
throw new DbPatch_Exception('Error dumping file ' . $filename . "\n" . $commandLine . "\n" . implode(PHP_EOL, $result));
}
return true;
}