bckManager.setHost(jtextfieldBckDBHost.getText());
bckManager.setPort(Integer.parseInt(jtextfieldBckPort.getText()));
bckManager.setUser(jtextfieldUsername.getText());
bckManager.setPassword(new String(jpasswordfieldPW.getPassword()));
TextAreaOutputStream textOutputStream = new TextAreaOutputStream(jtextareaProcess, jscrollpaneProcess);
bckManager.setLogger(textOutputStream);
bckManager.setVerbose(jcheckboxDisplayProcess.isSelected());
try {
jtextareaProcess.setText("");
if (jcheckboxBckMetadataOnly.isSelected()) {
bckManager.backupMetadata();
} else {
bckManager.backupDatabase(options);
}
jtextareaProcess.append(i18n.INFO_BACKUP_COMPLETED);
saveSessionPreferences();
} catch (SQLException e) {
jtextareaProcess.append(e.getLocalizedMessage()+ CR + i18n.INFO_BACKUP_CANCELED);
}
try {
textOutputStream.close();
} catch (IOException e) {
log.error(e.getLocalizedMessage());
}
}