public class BackupManager
extends java.lang.Object
Constructor and Description |
---|
BackupManager(BlueDbOnDisk db) |
Modifier and Type | Method and Description |
---|---|
void |
backup(java.util.List<BlueCollectionOnDisk<?>> collectionsToBackup,
java.nio.file.Path backupPath) |
void |
backupToTempDirectory(java.util.List<BlueCollectionOnDisk<?>> collectionsToBackup,
java.nio.file.Path tempFolder) |
static java.nio.file.Path |
translatePath(java.nio.file.Path fromPath,
java.nio.file.Path toPath,
java.nio.file.Path targetPath) |
public BackupManager(BlueDbOnDisk db)
public void backup(java.util.List<BlueCollectionOnDisk<?>> collectionsToBackup, java.nio.file.Path backupPath) throws BlueDbException, java.io.IOException
BlueDbException
java.io.IOException
public void backupToTempDirectory(java.util.List<BlueCollectionOnDisk<?>> collectionsToBackup, java.nio.file.Path tempFolder) throws BlueDbException
BlueDbException
public static java.nio.file.Path translatePath(java.nio.file.Path fromPath, java.nio.file.Path toPath, java.nio.file.Path targetPath)