@Internal
public interface BambooHomeMigrationService
Modifier and Type | Method and Description |
---|---|
void |
exportBambooHomeDirectory(File targetDirectory)
Exports Bamboo Home directory to the given directory, modifying the data on the fly (stripping e.g.
|
List<org.apache.commons.lang3.tuple.Pair<File,String>> |
getBambooHomeDirectoriesToExportSeparately(CloudExportSettings cloudExportSettings)
Obtain a list of directories which will not be exported as part of
exportBambooHomeDirectory(File) . |
void exportBambooHomeDirectory(@NotNull File targetDirectory) throws CloudExportException
The target directory must exist and must be empty prior to calling this method.
Some directories may not require any modifications, and exporting them may be optimized by directly copying
them e.g. to the target zip archive. This method will not export any entries from getBambooHomeDirectoriesToExportSeparately(CloudExportSettings)
.
targetDirectory
- directory into which Bamboo home should be exportedCloudExportException
- if any errors occur; the message should be internationalized, as it will be
displayed in the UI@NotNull List<org.apache.commons.lang3.tuple.Pair<File,String>> getBambooHomeDirectoriesToExportSeparately(CloudExportSettings cloudExportSettings)
exportBambooHomeDirectory(File)
.
These directories should not require any modifications and data truncation and thus, to save resources, can be
separately copied directly to e.g. target zip archive.
Each entry of the list should is a pair of values: source directory (left) and relative path of target directory (right) (relative to exported home directory).
exportBambooHomeDirectory(File)
.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.