if (closeCmd != null) {
String tmpFilename = dumperFilename + format.format(count);
String cmd = closeCmd + " " + tmpFilename;
String[] args = ReplaceVariable.toArray(cmd, " ");
Execute execute = new Execute(args, null, 10L);
execute.run(); // blocks until finished
if (execute.getExitValue() != 0) {
throw new Exception("Exception occured on executing '" + cmd + "");
}
}
// make a backup