Пример #1
0
 /** {@inheritDoc} */
 @Override()
 public void restoreBackup(RestoreConfig restoreConfig) throws DirectoryException {
   BackupManager backupManager = new BackupManager(getBackendID());
   File parentDir = getFileForPath(cfg.getDBDirectory());
   File backendDir = new File(parentDir, cfg.getBackendId());
   backupManager.restoreBackup(backendDir, restoreConfig);
 }
Пример #2
0
 /** {@inheritDoc} */
 @Override()
 public void removeBackup(BackupDirectory backupDirectory, String backupID)
     throws DirectoryException {
   BackupManager backupManager = new BackupManager(getBackendID());
   backupManager.removeBackup(backupDirectory, backupID);
 }