public interface BackupManager
| Modifier and Type | Field and Description |
|---|---|
static int |
FULL_AND_INCREMENTAL
The full and incremental backup the type of backup.
|
static int |
FULL_BACKUP_ONLY
The full backup only the type of backup.
|
| Modifier and Type | Method and Description |
|---|---|
BackupChain |
findBackup(String backupId)
Finding current backup by identifier.
|
BackupChain |
findBackup(String reposytore,
String workspace)
Finding current backup by repository and workspace.
|
RepositoryBackupChain |
findRepositoryBackup(String repository)
Finding current backup by repository.
|
RepositoryBackupChain |
findRepositoryBackupId(String id)
Finding current backup by id.
|
File |
getBackupDirectory()
Getting backup directory.
|
BackupChainLog[] |
getBackupsLogs()
Getting all backup logs .
|
Set<BackupChain> |
getCurrentBackups()
Getting current backups.
|
Set<RepositoryBackupChain> |
getCurrentRepositoryBackups()
Getting current repository backups.
|
long |
getDefaultIncrementalJobPeriod()
Getting default incremental job period.
|
String |
getFullBackupType()
Getting full backup type.
|
String |
getIncrementalBackupType()
Getting incremental backup type.
|
JobRepositoryRestore |
getLastRepositoryRestore(String repositoryName)
Getting last repository restore by repository name.
|
JobWorkspaceRestore |
getLastRestore(String repositoryName,
String workspaceName)
Getting last restore by repository and workspace name.
|
BackupMessage[] |
getMessages()
Getting the backup messages.
|
RepositoryBackupChainLog[] |
getRepositoryBackupsLogs()
Getting all repository backup logs.
|
List<JobRepositoryRestore> |
getRepositoryRestores()
Getting list of repository restores.
|
List<JobWorkspaceRestore> |
getRestores()
Getting list of restores.
|
void |
restore(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
Restore from backup.
|
void |
restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
boolean asynchronous)
Repository restore from backup.
|
void |
restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
boolean asynchronous,
boolean removeJobOnceOver)
Repository restore from backup.
|
void |
restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
Map<String,String> workspaceNamesCorrespondMap,
boolean asynchronous)
Repository restore from backup.
|
BackupChain |
startBackup(BackupConfig config)
Starting backup.
|
RepositoryBackupChain |
startBackup(RepositoryBackupConfig config)
Starting repository backup.
|
void |
stopBackup(BackupChain backup)
Stop backup.
|
void |
stopBackup(RepositoryBackupChain backup)
Stop backup.
|
static final int FULL_BACKUP_ONLY
static final int FULL_AND_INCREMENTAL
Set<BackupChain> getCurrentBackups()
Set<RepositoryBackupChain> getCurrentRepositoryBackups()
List<JobWorkspaceRestore> getRestores()
JobWorkspaceRestore getLastRestore(String repositoryName, String workspaceName)
repositoryName - String, the repository nameworkspaceName - String, the workspace nameList<JobRepositoryRestore> getRepositoryRestores()
JobRepositoryRestore getLastRepositoryRestore(String repositoryName)
repositoryName - String, the repository nameBackupChainLog[] getBackupsLogs()
RepositoryBackupChainLog[] getRepositoryBackupsLogs()
BackupChain startBackup(BackupConfig config) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, RepositoryConfigurationException
config - BackupConfig, the backup configurationBackupOperationException - BackupOperationException
will be generate the exception BackupOperationExceptionBackupConfigurationException - will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException - will be generate the exception RepositoryExceptionRepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionvoid stopBackup(BackupChain backup)
backup - BackupChain, the backup chainBackupChain findBackup(String reposytore, String workspace)
reposytore - String, the repository nameworkspace - String, the workspace nameBackupChain findBackup(String backupId)
backupId - String the backup identifiervoid restore(BackupChainLog log, String repositoryName, WorkspaceEntry workspaceEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, RepositoryConfigurationException
log - BackupChainLog, the backup logrepositoryName - String, repository nameworkspaceEntry - WorkspaceEntry, the workspace entryasynchronous - boolean, in 'true' then asynchronous restore.BackupOperationException - will be generate the exception BackupOperationExceptionBackupConfigurationException - will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException - will be generate the exception RepositoryExceptionRepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionBackupMessage[] getMessages()
File getBackupDirectory()
String getFullBackupType()
String getIncrementalBackupType()
long getDefaultIncrementalJobPeriod()
RepositoryBackupChain startBackup(RepositoryBackupConfig config) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, RepositoryConfigurationException
config - RepositoryBackupConfig, the backup configuration to repositoryBackupOperationException - BackupOperationException
will be generate the exception BackupOperationExceptionBackupConfigurationException - will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException - will be generate the exception RepositoryExceptionRepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionvoid stopBackup(RepositoryBackupChain backup)
backup - RepositoryBackupChain, the repositroy backup chainvoid restore(RepositoryBackupChainLog log, RepositoryEntry repositoryEntry, Map<String,String> workspaceNamesCorrespondMap, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, RepositoryConfigurationException
log - RepositoryBackupChainLog, the repository backup logrepositoryEntry - RepositoryEntry, the repository entryworkspaceNamesCorrespondMap - the map with correspondence workspace name in RepositoryEntry and RepositoryBackupChainLog.asynchronous - boolean, in 'true' then asynchronous restore.BackupOperationException - will be generate the exception BackupOperationExceptionBackupConfigurationException - will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException - will be generate the exception RepositoryExceptionRepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionvoid restore(RepositoryBackupChainLog log, RepositoryEntry repositoryEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, RepositoryConfigurationException
log - RepositoryBackupChainLog, the repository backup logrepositoryEntry - RepositoryEntry, the repository entryasynchronous - boolean, in 'true' then asynchronous restore.BackupOperationException - will be generate the exception BackupOperationExceptionBackupConfigurationException - will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException - will be generate the exception RepositoryExceptionRepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionvoid restore(RepositoryBackupChainLog log, RepositoryEntry repositoryEntry, boolean asynchronous, boolean removeJobOnceOver) throws BackupOperationException, BackupConfigurationException, javax.jcr.RepositoryException, RepositoryConfigurationException
log - RepositoryBackupChainLog, the repository backup logrepositoryEntry - RepositoryEntry, the repository entryasynchronous - boolean, in 'true' then asynchronous restore.removeJobOnceOver - boolean, in 'true' then restore job well remove after restore.BackupOperationException - will be generate the exception BackupOperationExceptionBackupConfigurationException - will be generate the exception BackupConfigurationExceptionjavax.jcr.RepositoryException - will be generate the exception RepositoryExceptionRepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionRepositoryBackupChain findRepositoryBackup(String repository)
repository - String, the repository nameRepositoryBackupChain findRepositoryBackupId(String id)
id - String, the repository nameCopyright © 2020 eXo Platform SAS. All Rights Reserved.