& $configMysqldumpCli --host=$configMysqlHost --port=$configMysqlPort --user=$configMysqlUser --password=$configMysqlPassword --single-transaction --result-file=$target $database
if($LastExitCode -ne 0) {
throw "mysqldump exited with Exit code $LastExitCode"
}
& $configMysqldumpCli --host=$configMysqlHost --port=$configMysqlPort --user=$configMysqlUser --password=$configMysqlPassword --single-transaction --result-file=$target $database
if($LastExitCode -ne 0) {
throw "mysqldump exited with Exit code $LastExitCode"
}