说明
ServerBackupFabric 是一款 Minecraft 模组,旨在自动化并简化为 Minecraft 服务器创建和管理备份的过程。它允许服务器管理员手动和自动创建世界备份、恢复备份,甚至恢复单个玩家的物品栏。该模组确保在发生意外问题时,你的服务器数据是安全的且易于恢复。
功能
- 手动备份:按需创建服务器世界的备份。
- 自动备份:设置定期备份计划,确保数据始终受到保护。
- 备份管理:自动限制备份数量以节省磁盘空间。
- 恢复世界:从备份中恢复整个服务器世界。
- 恢复玩家物品栏:从备份中恢复特定玩家的物品栏。
- 备份建议:在命令中为备份 ID 和在线玩家提供自动补全建议。
安装
要求
- Minecraft 版本:1.21.5
- Fabric Loader 版本:0.16.10
- Fabric API 版本:0.119.5+1.21.5
步骤
- 下载模组:
- 安装 Fabric Loader:
- 安装 Fabric API:
- 从 CurseForge 下载 Fabric API(版本
0.119.5+1.21.5)并将其放入服务器的 mods 文件夹中。
- 添加模组:
- 将
server-backup-fabric.jar 文件放入服务器的 mods 文件夹中。
- 启动服务器:
- 启动你的 Minecraft 服务器。模组将自动初始化并创建必要的文件。
用法
命令
该模组提供了多个用于管理和恢复备份的命令。所有命令都需要权限等级 4(服务器操作员)。
1. 创建手动备份
/serverbackup
2. 设置自动备份延迟
/serverbackup autodelay <time>
3. 列出备份
/serverbackup list
4. 恢复世界
/serverbackup restoreworld <backupID>
5. 恢复玩家物品栏
/serverbackup restoreplayer <backupID> <playername>
配置
该模组会在服务器目录内的 server_backups 文件夹中自动创建备份。备份组织如下:
manual_backups:用于手动创建的备份。
auto_backups:用于自动创建的备份。
备份限制
- 该模组将手动和自动备份的数量限制为 5 个(5 个手动,5 个自动。共 10 个备份)。较旧的备份会自动删除以节省磁盘空间。
贡献
欢迎贡献!如果你遇到任何问题或有功能请求,请提交 issue 或拉取请求。
许可证
本项目采用 CC0 1.0 许可证授权。
支持
如果你有任何问题或需要帮助,随时可以在 GitHub 仓库 上提交 issue。
Description
ServerBackupFabric is a Minecraft mod designed to automate and simplify the process of creating and managing backups for your Minecraft server. It allows server administrators to create manual and automatic backups of the world, restore backups, and even restore individual player inventories. The mod ensures that your server data is safe and easily recoverable in case of unexpected issues.
Features
- Manual backups: Create backups of your server world on demand.
- Automatic backups: Schedule periodic backups to ensure your data is always protected.
- Backup Management: Automatically limit the number of backups to save disk space.
- Restore World: Restore the entire server world from a backup.
- Restore Player Inventory: Restore individual player inventories from backups.
- Backup Suggestions: Autocomplete suggestions for backup IDs and online players in commands.
Installation
Requirements
- Minecraft Version: 1.21.5
- Fabric Loader Version: 0.16.10
- Fabric API Version: 0.119.5+1.21.5
Steps
- Download the Mod:
- Download the latest release of the mod from the Releases section of this repository.
- Install Fabric Loader:
- Install Fabric API:
- Download the Fabric API (version
0.119.5+1.21.5) from CurseForge and place it in your server's mods folder.
- Add the Mod:
- Place the
server-backup-fabric.jar file into your server's mods folder.
- Start the Server:
- Start your Minecraft server. The mod will automatically initialize and create necessary files.
Usage
Commands
The mod provides several commands to manage backups and restores. All commands require a permission level of 4 (server operator).
1. Create a Manual Backup
/serverbackup
- Creates a manual backup of the server world.
2. Set Automatic Backup Delay
/serverbackup autodelay <time>
3. List Backups
/serverbackup list
- Displays a list of all available backups, sorted by data and time.
4. Restore the World
/serverbackup restoreworld <backupID>
5. Restore a Player's Inventory
/serverbackup restoreplayer <backupID> <playername>
Configuration
The mod automatically creates backups in the server_backups folder within your server directory. Backups are organized into:
manual_backups: For manually created backups.
auto_backups: For automatically created backups.
Backup Limits
- The mod limits the number of backups to 5 for both manual and automatic backups (5 manual, 5 automatic. 10 total backups). Older backups are automatically deleted to save disk space.
Contributing
Contributions are welcome! If you encounter any issues or have feature requests, please open an issue or submit a pull request.
License
This project is licensed under the CC0 1.0 License.
Support
If you have any questions or need help, feel free to open an issue on the GitHub repository.
评论 0
登录后参与评分
还没有评论,来抢沙发吧