AutoBackup 是一款功能强大且智能的 Minecraft 1.21.11 服务器备份插件,它通过智能增量备份自动保护你的服务器,从而节省空间和時間。
主要特性
- 智能增量备份: 仅备份自上次保存以来发生更改的文件
- 零延迟性能: 完全异步运行,防止服务器卡顿
- 防数据损坏: 使用原生的
world.save() 确保数据一致性
- 自动清理: 自动管理磁盘空间,删除旧的备份文件
- 全面覆盖: 备份世界、插件和配置文件
- 原生压缩: 使用高效的 Java ZIP 压缩以最小化文件大小
功能说明
标准的备份解决方案通常会每次复制整个服务器目录,这不仅浪费大量的磁盘空间,还经常在大文件操作期间导致明显的延迟 spikes(卡顿)。
AutoBackup 通过智能追踪解决了这个问题。在初始完整备份之后,该插件会追踪每个文件的修改时间。后续的备份仅包含发生更改的特定文件或区块。这极大地减少了备份大小(通常减少 90% 以上),并允许过程在几秒钟内完成,而不是几分钟。
安全性与性能
该插件遵循“数据损坏风险:接近零”的设计理念。在任何备份开始之前,它会触发 world.save(),强制服务器将所有待处理的区块写入和数据刷新到磁盘。备份过程本身是严格只读的——它将文件直接流式传输到 ZIP 文件中,而不会写入你当前的游戏数据。
配置
该插件开箱即用,但可以通过 plugins/AutoBackup/config.yml 进行高度自定义。
- 计划任务 (Schedule): 设置备份间隔(分钟)(默认值:60)。
- 保留数量 (Retention): 定义在删除最旧备份之前保留的最大备份数量(默认值:10)。
- 范围 (Scope): 选择要备份的具体世界或排除特定的文件模式(如庞大的日志文件)。
- 模式 (Mode): 在增量(智能)备份或完整备份之间切换。
命令与权限
/autobackup now — 立即强制执行完整备份 (autobackup.create)
/autobackup list — 列出所有已存储的备份 (autobackup.list)
/autobackup info — 查看当前配置 (autobackup.use)
/autobackup reload — 重新加载插件配置 (autobackup.reload)
安装
AutoBackup 是一个专为 Paper 1.21.11 设计的服务端插件(兼容所有 1.21.x 版本)。只需将 JAR 文件放入 plugins 文件夹并重启服务器即可。一个名为 backups 的文件夹会自动在服务器根目录下创建。
恢复
备份以标准 ZIP 文件格式存储在 backups/ 文件夹中。要恢复数据,只需停止服务器,解压所需备份 ZIP 的内容,然后覆盖当前的服务器文件。强烈建议先在本地环境中测试恢复操作。
? 支持与错误报告
发现错误或需要帮助设置插件?
直接在 Discord 上报告问题。
AutoBackup is a powerful, intelligent backup plugin for Minecraft 1.21.11 that automatically safeguards your server with smart incremental backups to save space and time.
Key Features
- Smart Incremental Backups: Only backs up files that have changed since the last save
- Zero-Lag Performance: Runs entirely asynchronously to prevent server stalling
- Corruption-Safe: Utilizes native
world.save() to ensure data consistency
- Automatic Cleanup: Automatically manages disk space by deleting old backups
- Complete Coverage: Backs up worlds, plugins, and configurations
- Native Compression: Uses efficient Java ZIP compression to minimize file size
Functionality
Standard backup solutions often copy the entire server directory every time, wasting massive amounts of disk space and frequently causing lag spikes during large file operations.
AutoBackup solves this by using smart tracking. After the initial full backup, the plugin tracks the modification time of every file. Subsequent backups only include the specific files or chunks that have changed. This dramatically reduces backup size (often by 90% or more) and allows the process to complete in seconds rather than minutes.
Safety & Performance
The plugin is designed with a "corruption-risk: near zero" philosophy. Before any backup begins, it triggers a world.save(), forcing the server to flush all pending chunk writes and data to the disk. The backup process itself is strictly read-only—it streams files directly to a ZIP without ever writing to your active game data.
Configuration
The plugin works out of the box, but is highly customizable via plugins/AutoBackup/config.yml.
- Schedule: Set the backup interval in minutes (Default: 60).
- Retention: Define the maximum number of backups to keep before deleting the oldest ones (Default: 10).
- Scope: Choose specific worlds to backup or exclude specific file patterns (like heavy log files).
- Mode: Toggle between incremental (smart) or full backups.
Commands & Permissions
/autobackup now — Force a full backup immediately (autobackup.create)
/autobackup list — List all stored backups (autobackup.list)
/autobackup info — View current configuration (autobackup.use)
/autobackup reload — Reload the plugin configuration (autobackup.reload)
Installation
AutoBackup is a server-side plugin designed for Paper 1.21.11 (compatible with all 1.21.x versions). Simply drop the JAR into your plugins folder and restart your server. A backups folder will be created automatically in your server root.
Restoring
Backups are stored as standard ZIP files in the backups/ folder. To restore, simply stop your server, extract the contents of the desired backup ZIP, and overwrite your current server files. It is highly recommended to test restores on a local environment first.
? Support & Bug Reports
Found a bug or need help setting up the plugin?
Report issues directly on Discord.
评论 0
登录后参与评分
还没有评论,来抢沙发吧