From 81497ebee2cdb0dac3bcdc26c5d77d06bdb98b5d Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 13 Jan 2021 12:51:15 +0800 Subject: Clean old incremental backup codes. --- README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2c34c2f..7152430 100644 --- a/README.md +++ b/README.md @@ -51,14 +51,8 @@ done ## 3. To-Do List: -- New version checker. -- Refactor code. -- More thorough test. -- Implement incremental backup. - + Restore: trace-back (recursively, then generate file dependence tree) - - Implement unZipRecursively (unzip a .zip.inc file recursively until reaches the root (i.e. the last full backup).) - + Backup: base-diff (select most recently backup as the base, then diff) - - Implement zipDiff (make a new zip with the latest backup as the base, store diff-table in zip comment (A:Add, M:Modification, D:Deletion)) -- Optimize help menu. (colored command help menu) -- Add op login hint in the next start after restoring. -- Implement incremental backup. +- Incremental backup +- Code refactor +- Op login hint in the next start after restoring +- Optimized help menu (colored command help menu) +- New version checker -- cgit v1.2.3 From 319ce8664ba9d47fd68a8efa9826cb5a02a1ff46 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 14 Jan 2021 13:49:18 +0800 Subject: Update command for incremental backup --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7152430..496c68b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A simple backup mod for fabric Minecraft server. -Minecraft version: 1.14.4 +Minecraft version: 1.14.4, 1.15.2, 1.16.4 [Fabric API](https://minecraft.curseforge.com/projects/fabric/files) is required! @@ -11,6 +11,7 @@ Minecraft version: 1.14.4 - **/kb** or **/kb help**: show command list - **/kb list**: show existing backups - **/kb backup \[backup_name\]**: make a backup with given name or the current system time by default +- **/kb incbak \[backup_name\]**: make an incremental backup which will be saved in `incremental` folder. (However, the index file will be saved in `backups` folder) - **/kb restore \**: restore to a certain backup. This command needs a confirm to execute. - **/kb confirm**: confirm executing restore operation. The operation is irreversible. - **/kb delete**: delete an existing backup. -- cgit v1.2.3 From 5660bef2024c2a3288e12bacd2acc63eab63b83d Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 20 Jan 2021 18:46:25 +0800 Subject: Update README file --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 496c68b..c2cb86e 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,7 @@ done ## 3. To-Do List: -- Incremental backup -- Code refactor - Op login hint in the next start after restoring -- Optimized help menu (colored command help menu) +- A more friendly help menu (colored command help menu) - New version checker +- Code refactor -- cgit v1.2.3 From d010ca5c85dbc36502b382fda4b5b24f0a8b4d6f Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 20 Jan 2021 18:49:10 +0800 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c2cb86e..4fe0d01 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # KBackup-Fabric -A simple backup mod for fabric Minecraft server. +A simple backup mod for **fabric** Minecraft server, which makes **normal `.zip` backup** of your world, or self-implemented **incremental backup**, with slower increasing disk usage. -Minecraft version: 1.14.4, 1.15.2, 1.16.4 +Supported Minecraft version: 1.14.4, 1.15.2, 1.16.4/1.16.5 [Fabric API](https://minecraft.curseforge.com/projects/fabric/files) is required! -- cgit v1.2.3 From 7a5297de3467b1069fdf5e4a1b2aaf510ca35663 Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 20 Jan 2021 19:23:06 +0800 Subject: Add Chinese in README and fix some grammar mistake --- README.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4fe0d01..b639657 100644 --- a/README.md +++ b/README.md @@ -2,24 +2,39 @@ A simple backup mod for **fabric** Minecraft server, which makes **normal `.zip` backup** of your world, or self-implemented **incremental backup**, with slower increasing disk usage. +一个简单的Fabric备份Mod,支持普通备份(将存档整体压缩为 `.zip` 文件,保存在 `backups` 目录下)和增量备份(按需保存到 `incremental` 目录下,并将目录树结构保存在 `backups` 目录下) + Supported Minecraft version: 1.14.4, 1.15.2, 1.16.4/1.16.5 [Fabric API](https://minecraft.curseforge.com/projects/fabric/files) is required! ## 1. Commands +(In English) + - **/kb** or **/kb help**: show command list - **/kb list**: show existing backups -- **/kb backup \[backup_name\]**: make a backup with given name or the current system time by default +- **/kb backup \[backup_name\]**: make a backup with given name or with the current system time by default - **/kb incbak \[backup_name\]**: make an incremental backup which will be saved in `incremental` folder. (However, the index file will be saved in `backups` folder) -- **/kb restore \**: restore to a certain backup. This command needs a confirm to execute. +- **/kb restore \**: restore to a certain backup. This command needs a confirmation to execute. - **/kb confirm**: confirm executing restore operation. The operation is irreversible. - **/kb delete**: delete an existing backup. -- **/kb prev**: Find and select the most recent backup file. +- **/kb prev**: Find and select the most recent backup file. After executing this command, you can use `/kb restore 1` to restore to this backup. + +(In simplified Chinese, 简体中文版本) + +- **/kb** or **/kb help**: 显示命令列表 +- **/kb list**: 显示所有已有的备份 +- **/kb backup \[backup_name\]**: 以给定名字创建一个新备份,缺省的名字是“noname” +- **/kb incbak \[backup_name\]**: 创建一个增量备份,保存在 `incremental` 目录下。 (目录树的整体结构仍然被保存在 `backups` 目录下) +- **/kb restore \**: 还原到指定的备份。该命令需要二次确认才会真正被执行 +- **/kb confirm**: 二次确认,一旦确认,等待确认的命令会立刻被执行。这个命令是不可逆的 +- **/kb delete**: 删除一个现有的备份 +- **/kb prev**: 显示并且选中最近的一个备份,执行这个命令后,可以直接使用 `/kb restore 1` 进行还原 ## 2. Script for auto-restart after restoring -Due to the nature of JVM: the Java language's running environment, there is no elegant way to restart Minecraft server in a server plugin. In order to achieve auto restarting, the outer system-based script is required, i.e the script is a batch or a shell script. +Due to the nature of JVM: the Java language's running environment, there is no elegant way to restart Minecraft server in a server plugin. In order to auto restart after restoring, an outer system-based script is required, i.e. a batch or a shell script. KBackup exit JVM with a special code `111` after restoring the level successfully. The startup script just check the exit code and restart Minecraft server if the code is `111`. @@ -37,7 +52,7 @@ rem kbackup restore auto restart pause ``` -### 2.2 Script for Linux or U\*ix using shell +### 2.2 Script for Linux or U\*ix using shell (Not tested, I use Windows for the most time, test it on your own) ```shell #!/bin/sh @@ -55,4 +70,4 @@ done - Op login hint in the next start after restoring - A more friendly help menu (colored command help menu) - New version checker -- Code refactor +- Code refactor for maintainability -- cgit v1.2.3