From ea01faf3947814fe7ecaa3705e5fbf0f171f7e48 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 24 Apr 2020 13:43:20 +0800 Subject: Added hint at the "/kb" output in the first run after restoring from a backup. Warning: Backup in this version is not compatible with older version! --- .../kbackupfabric/metadata/BackupMetadata.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/com/keuin/kbackupfabric/metadata/BackupMetadata.java (limited to 'src/main/java/com/keuin/kbackupfabric/metadata/BackupMetadata.java') diff --git a/src/main/java/com/keuin/kbackupfabric/metadata/BackupMetadata.java b/src/main/java/com/keuin/kbackupfabric/metadata/BackupMetadata.java new file mode 100644 index 0000000..b8cb852 --- /dev/null +++ b/src/main/java/com/keuin/kbackupfabric/metadata/BackupMetadata.java @@ -0,0 +1,26 @@ +package com.keuin.kbackupfabric.metadata; + +import java.io.Serializable; + +/** + * WARNING: DO NOT modify this class, or the plugin will be incompatible with backups created by older versions. + */ +public class BackupMetadata implements Serializable { + public static final String metadataFileName = "kbackup_metadata"; + private static final long serialVersionUID = 1L; + private final long BackupTime; + private final String backupName; + + public BackupMetadata(long backupTime, String backupName) { + BackupTime = backupTime; + this.backupName = backupName; + } + + public long getBackupTime() { + return BackupTime; + } + + public String getBackupName() { + return backupName; + } +} -- cgit v1.2.3