public interface BackupClient
| Modifier and Type | Method and Description |
|---|---|
String |
drop(boolean forceClose,
String repositoryName,
String workspaceName)
Drop workspace or repository.
|
String |
info()
Get information about backup service.
|
String |
list()
Get information about the current backups (in progress).
|
String |
listCompleted()
Get information about the completed (ready to restore) backups.
|
String |
restore(String repositoryName,
String workspaceName,
String backupId,
InputStream config,
String backupSetPath,
boolean removeExosts)
Restore repository or workspace from backup file.
|
String |
restores(String repositoryName,
String workspaceName)
Get information about current restores of repository or workspace.
|
String |
startBackUp(String repositoryName,
String workspaceName,
String backupDir)
Start backup of repository or workspace.
|
String |
startIncrementalBackUp(String repositoryName,
String workspaceName,
String backupDir,
long incr)
Start Incremental Backup of repository or workspace.
|
String |
status(String backupId)
Get Status of backup.
|
String |
stop(String backupId)
Stop backup.
|
String startBackUp(String repositoryName, String workspaceName, String backupDir) throws IOException, BackupExecuteException
repositoryName - String, the repository name.workspaceName - String, the workspace name.backupDir - path to backup folder on remote serverIOException - transport exception.BackupExecuteException - backup client internal exception.String startIncrementalBackUp(String repositoryName, String workspaceName, String backupDir, long incr) throws IOException, BackupExecuteException
repositoryName - String, the repository nameworkspaceName - String, the workspace nameincr - incremental job period.backupDir - path to backup folder on remote serverIOException - transport exceptionBackupExecuteException - backup client internal exceptionString status(String backupId) throws IOException, BackupExecuteException
backupId - the backup identifier.IOException - transport exception.BackupExecuteException - backup client internal exception.String info() throws IOException, BackupExecuteException
IOException - transport exceptionBackupExecuteException - backup client internal exceptionString restores(String repositoryName, String workspaceName) throws IOException, BackupExecuteException
repositoryName - String, the repository nameworkspaceName - String, the workspace nameIOException - transport exceptionBackupExecuteException - backup client internal exceptionString restore(String repositoryName, String workspaceName, String backupId, InputStream config, String backupSetPath, boolean removeExosts) throws IOException, BackupExecuteException
repositoryName - String, the repository nameworkspaceName - String, the workspace namebackupId - the backup identifierconfig - InputStream contains workspace configurationbackupSetPath - String, path to backup set directory on server sideremoveExosts - boolean. if 'true' then will be removed(clean db, value storage, index) existed repository/workspace.IOException - transport exceptionBackupExecuteException - backup client internal exceptionString stop(String backupId) throws IOException, BackupExecuteException
backupId - the backup identifierIOException - transport exceptionBackupExecuteException - backup client internal exceptionString drop(boolean forceClose, String repositoryName, String workspaceName) throws IOException, BackupExecuteException
forceClose - force sessions close on repository or workspacerepositoryName - String, the repository nameworkspaceName - String, the workspace nameIOException - transport exceptionBackupExecuteException - backup client internal exceptionString list() throws IOException, BackupExecuteException
IOException - transport exceptionBackupExecuteException - backup client internal exceptionString listCompleted() throws IOException, BackupExecuteException
IOException - transport exceptionBackupExecuteException - backup client internal exceptionCopyright © 2019 eXo Platform SAS. All Rights Reserved.