This plugin requires Fabric API: https://www.curseforge.com/minecraft/mc-mods/fabric-api
It is a simple mod for my personal server, and it works on Minecraft 1.14.x/1.15.x/1.16.x/1.17.x/1.18.x
All updates will be published at https://github.com/keuin/KBackup-Fabric/releases.
The latest documentation is on GitHub: README.md (Engligh) and README_zh_CN.md (Simplified Chinese).
incremental folder. (Incremental backup will create an index file which has an ext name of .kbi, and it will be saved in backups folder, which is the same with where .zip resides)/kb restore 1 to restore to this backup.
Since v1.7.0, KBackup supports permission management. You can use LuckPerms to control which command the players can use. Only OPs can backup and restore by default.
Permission nodes:
| Command | Permission Required |
|---|---|
| /kb | kb.root |
| /kb help | kb.help |
| /kb list | kb.list |
| /kb backup | kb.backup |
| /kb incbak | kb.incbak |
| /kb restore | kb.restore |
| /kb delete | kb.delete |
| /kb confirm | kb.confirm |
| /kb cancel | kb.cancel |
| /kb prev | kb.prev |
.zip backup mode:
When backing up the worlds, this plugin compresses the whole world folder into a zip file, which will be stored in the "backups" folder.
When restoring, it stop the server, then decompress the elder zip pack to recover the previous world folder. Note: This plugin does not rely on any outer script. All you need to do is to restart your server manually after it is completely shut down automatically.
Incremental backup mode (only save modified files in the `world` folder since last backup)
KBackup adopts the algorithm which git (a version control software) uses. If you are interested, google how does git work.
Comparision between .zip backup and incremental backup
Both methods have their own advantages and disadvantages.
.zip backup:
Incremental backup:
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.
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.
I will give examples for some popular operating systems. To use these scripts, you should replace your start.bat or start.sh script with given code lines.
The code formatting is rather bad, so please visit https://github.com/keuin/KBackup-Fabric/blob/master/README.md for the example script, or you can write it by yourself ;).
If you have any questions about this plugin, please make an issue at this project's issue page, or just leave a comment below.
For those who want to backup their worlds regularly, here is an external solution (since auto-backup has not been added into KBackup):
If you want to change the backup time or frequency, please read this manual and modify the script. You have to learn a little python.
No files available for download.