public class BackupApi extends Object
Like list of available backup files, run new backup, to restore a backup
Modifier and Type | Field and Description |
---|---|
static String[] |
BACKUP_FILE_SUFFIX_FILTER |
static String |
KEY_NAME |
Constructor and Description |
---|
BackupApi() |
Modifier and Type | Method and Description |
---|---|
String |
backupNow()
Call this method to run immediate system backup
|
String |
backupNow(String backupFilePrefix)
Call this method to run immediate system backup
|
void |
deleteBackupFiles(List<String> backupFiles)
Call this method to delete list of backup files
|
QueryResponse |
getBackupFiles(HashMap<String,Object> filters)
Call this method to get list of available backup files.
|
void |
restore(String fileName)
Call this method to restore a backup file
|
public static final String KEY_NAME
public static final String[] BACKUP_FILE_SUFFIX_FILTER
public QueryResponse getBackupFiles(HashMap<String,Object> filters) throws IOException
Filter(s):
name - List
of backup file names
Page filter(s):
pageLimit - Set number of items per page
page - Request page number
order - Set order. Option: asc, desc
orderBy - column name for order. Option: name
filters
- Supports various filter options.IOException
- throws when problem with backup locationpublic void deleteBackupFiles(List<String> backupFiles) throws IOException
backupFiles
- List of backup file names with extensionIOException
- throws when problem with backup locationpublic String backupNow(String backupFilePrefix) throws McException, IOException
backupFilePrefix
- backup file prefix nameIOException
- throws when problem with backup locationMcException
- internal issuepublic String backupNow() throws McException, IOException
calls backupNow(String)
with 'on-demand' string
IOException
- throws when problem with backup locationMcException
- internal issuepublic void restore(String fileName) throws IOException, McBadRequestException
fileName
- backup file name to restore
Warning: After successful restore you have to start the server manually
IOException
- throws when problem with backup locationMcBadRequestException
- given file name not availableCopyright © 2015–2019. All rights reserved.