if (!PrivilegedFileHelper.exists(backupDir))
throw new BackupDirNotFoundException("The backup folder not exists : "
+ PrivilegedFileHelper.getAbsolutePath(backupDir));
}
RepositoryBackupConfig config = new RepositoryBackupConfig();
config.setBackupType(bConfigBean.getBackupType());
config.setRepository(repository);
config.setBackupDir(backupDir);
config.setIncrementalJobPeriod(bConfigBean.getIncrementalJobPeriod());
config.setIncrementalJobNumber(bConfigBean.getIncrementalRepetitionNumber());
validateRepositoryName(repository);
RepositoryBackupChain chain = backupManager.startBackup(config);