public class DefaultBackupManager extends Object implements BackupManager
BackupManager| Constructor and Description |
|---|
DefaultBackupManager(XmlMigrationManager xmlMigrationManager,
FileConfigurationExporter fileConfigurationExporter,
BackupFileStore backupFileStore) |
| Modifier and Type | Method and Description |
|---|---|
long |
backup(String exportFileName,
boolean resetDomain)
Perform an XML export of crowd, as well as of the directory configuration.
|
String |
generateAutomatedBackupFileName()
Generate a filename for an automated backup, that can then be used with
BackupManager.backup(String, boolean). |
protected String |
generateFileName(String pattern) |
String |
generateManualBackupFileName()
Generate a filename for a manual backup, that can then be used with
BackupManager.backup(String, boolean) |
BackupSummary |
getAutomatedBackupSummary()
Return a summary of how many automated backups are present, and how old are the oldest and most recent backups.
|
String |
getBackupFileFullPath(String fileName)
Generate the full path of the given backup filename.
|
public DefaultBackupManager(XmlMigrationManager xmlMigrationManager, FileConfigurationExporter fileConfigurationExporter, BackupFileStore backupFileStore)
public String generateManualBackupFileName()
BackupManagerBackupManager.backup(String, boolean)generateManualBackupFileName in interface BackupManagerpublic String generateAutomatedBackupFileName()
BackupManagerBackupManager.backup(String, boolean).generateAutomatedBackupFileName in interface BackupManagerpublic String getBackupFileFullPath(String fileName)
BackupManagergetBackupFileFullPath in interface BackupManagerfileName - a filename@Transactional public long backup(String exportFileName, boolean resetDomain) throws ExportException
BackupManagerbackup in interface BackupManagerexportFileName - the name of the file to export to (not the full path)resetDomain - whether to activate the RESET_DOMAIN option or notExportException - in case an error happens while exporting the datapublic BackupSummary getAutomatedBackupSummary()
BackupManagergetAutomatedBackupSummary in interface BackupManagerBackupSummaryCopyright © 2017 Atlassian. All rights reserved.