use of com.sun.enterprise.backup.BackupRequest in project Payara by payara.
the class BackupCommands method prepareRequest.
protected void prepareRequest() throws CommandValidationException {
File backupdir_f = null;
if (backupdir != null) {
backupdir_f = new File(backupdir);
if (!backupdir_f.isAbsolute()) {
throw new CommandValidationException(strings.get("InvalidBackupDirPath", backupdir));
}
}
boolean configonlybackup = false;
if ((configonly != null) && (Boolean.valueOf(configonly))) {
configonlybackup = true;
}
request = new BackupRequest(domainDirParam, domainName, backupdir_f, backupConfig, desc, recycleLimit, configonlybackup);
request.setTerse(programOpts.isTerse());
request.setVerbose(verbose);
}
use of com.sun.enterprise.backup.BackupRequest in project Payara by payara.
the class RestoreDomainCommand method initRequest.
private void initRequest() throws CommandValidationException {
File backupdir_f = null;
if (backupdir != null) {
backupdir_f = new File(backupdir);
if (!backupdir_f.isAbsolute()) {
throw new CommandValidationException(strings.get("InvalidBackupDirPath", backupdir));
}
}
boolean configonlybackup = false;
if ((configonly != null) && (Boolean.valueOf(configonly))) {
configonlybackup = true;
}
request = new BackupRequest(domainDirParam, domainName, backupdir_f, backupConfig, backupFilename, configonlybackup);
request.setTerse(programOpts.isTerse());
request.setVerbose(verbose);
request.setForce(force);
}
Aggregations