DataManager dataManager =
(WorkspacePersistentDataManager)repositoryService.getRepository(this.repositoryEntry.getName())
.getWorkspaceContainer(wEntry.getName()).getComponent(WorkspacePersistentDataManager.class);
FileCleanerHolder fileCleanHolder =
(FileCleanerHolder)repositoryService.getRepository(this.repositoryEntry.getName())
.getWorkspaceContainer(wEntry.getName()).getComponent(FileCleanerHolder.class);
File storageDir =
JCRRestor.getFullBackupFile(workspacesMapping.get(wEntry.getName()).getBackupConfig().getBackupDir());
JCRRestor restorer = new JCRRestor(dataManager, fileCleanHolder.getFileCleaner());
for (File incrBackupFile : JCRRestor.getIncrementalFiles(storageDir))
{
restorer.incrementalRestore(incrBackupFile);
}
}