protected ExtendedBackupManager getRDBMSBackupManager()
{
if (backup == null)
{
InitParams initParams = new InitParams();
PropertiesParam pps = new PropertiesParam();
pps.setProperty(BackupManagerImpl.FULL_BACKUP_TYPE,
"org.exoplatform.services.jcr.ext.backup.impl.rdbms.FullBackupJob");
pps.setProperty(BackupManagerImpl.INCREMENTAL_BACKUP_TYPE,
"org.exoplatform.services.jcr.ext.backup.impl.fs.IncrementalBackupJob");
pps.setProperty(BackupManagerImpl.BACKUP_DIR, "target/backup");
pps.setProperty(BackupManagerImpl.DEFAULT_INCREMENTAL_JOB_PERIOD, "3600");
initParams.put(BackupManagerImpl.BACKUP_PROPERTIES, pps);
BackupManagerImpl backup = new BackupManagerImpl(initParams, repositoryService);
backup.start();