blob: 97c609dae8915e3d44ca7af0ad570e0e752698b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.keuin.kbackupfabric.operation.backup;
import com.keuin.kbackupfabric.util.backup.builder.BackupFileNameBuilder;
import com.keuin.kbackupfabric.util.backup.formatter.BackupFileNameFormatter;
import com.sun.istack.internal.NotNull;
import java.io.IOException;
public interface BackupMethod {
/**
* Perform a backup with given method. The backup will be saved as the given name.
* Note: real file name is depended by the backup type.
* @param backupName the backup name.
*/
void backup(@NotNull String backupName, @NotNull String levelPath, @NotNull String backupSaveDirectory) throws IOException;
BackupFileNameBuilder getBackupFileNameBuilder();
BackupFileNameFormatter getBackupFileNameFormatter();
}
|