ChronoVault — 面向 Fabric 的流式增量备份
实时区块级备份,具备 SHA-256 去重、Zstd 压缩、Web 面板及云同步功能。仅存储发生变化的部分——告别浪费资源的整世界全量转储。
为什么选择 ChronoVault?
传统的备份模组会按时间间隔转储整个世界——速度慢、资源浪费且干扰游戏进程。ChronoVault 通过 Mixin 注入,在区块保存时捕获数据,计算 SHA-256 哈希值,并仅存储实际发生变化的部分。这是专为生产环境服务器设计的备份方案。
| 功能 |
ChronoVault |
Vanilla Backup (原版备份) |
Fast Backups (快速备份) |
| 增量备份(仅更改的区块) |
✅ |
❌ |
❌ |
| SHA-256 去重(无重复数据) |
✅ |
❌ |
❌ |
| 热恢复(无需重启) |
✅ |
❌ |
❌ |
| 区块级回滚 |
✅ |
❌ |
❌ |
| Web 仪表盘 |
✅ |
❌ |
❌ |
| 云同步 (S3/WebDAV) |
✅ |
❌ |
❌ |
| 恢复时的玩家疏散 |
✅ |
❌ |
❌ |
| 实时审计(谁破坏/放置了方块) |
✅ |
❌ |
❌ |
| 区块段级审计差异对比 |
✅ |
❌ |
❌ |
| Zstd 压缩(约 6.4:1 比例) |
✅ |
❌ |
❌ |
| SQLite 元数据(即时查询) |
✅ |
❌ |
❌ |
| 通知 Webhook |
✅ |
❌ |
❌ |
| 配置热重载 |
✅ |
❌ |
❌ |
功能特性
流式增量备份
ChronoVault 通过 Mixin 挂钩到 Minecraft 的区块序列化管道。每当一个区块被保存时,我们实时捕获它,对其进行哈希处理,并且仅在新数据时才进行存储。无轮询,无 I/O 浪费。
带玩家疏散的热恢复
无需重启服务器即可回滚任意区域。在恢复开始前,受影响区块内的玩家会被安全地疏散至出生点。精确到分钟级别——零世界停机时间。
实时审计追踪
通过 Mixin 注入实现实时的方块破坏、方块放置和爆炸事件日志记录。支持在游戏中通过玩家名称查询 (/cv audit <player>) 或通过 Web API 查询。每一次方块变更都带有时间戳并可追溯责任人。
区块段级审计差异对比
使用 NBT 哈希比较,以区块段粒度(16×16×16)对比两个快照。与实时审计日志交叉引用,对每一次变更提供完整的玩家归属权判定。
Web 仪表盘(端口 27480)
内置的单页 Web 应用程序,用于监控和管理:
- 状态 — 引擎健康状况、队列大小、丢包区块数、在线玩家数量
- 快照 — 浏览、检查、触发手动备份
- 恢复 — 通过坐标输入执行冷恢复或热区域恢复
- 实时审计 — 按玩家查询实时方块事件
- 审计差异 — 任意两个快照之间的区块段级对比
- 配置 — 无需重启即可热重载所有设置
云同步
自动将快照上传至 S3 或 WebDAV。异步工作池绝不会阻塞服务器主线程。分层保留策略使近期快照保留在本地,而将较旧的快照归档至云端。
分层保留策略
可配置的保留策略:保留所有快照 N 小时,然后每小时保留 M 天,之后每天保留 K 天。旧快照会自动轮换,并可选择性地卸载至云端。
通知 Webhook
支持 Discord、Slack 和飞书 webhook 集成。在备份完成、恢复事件和错误发生时接收通知。
配置热重载
在服务器运行时更改 config/chronovault.json 中的任何设置。无需重启。
安装指南
- 从 Modrinth 下载
- 将其放入服务器的
mods/ 文件夹中
- 需要 Fabric Loader ≥ 0.16.0 和 Fabric API ≥ 0.100.0
- 启动服务器 — ChronoVault 会自动配置并在首次区块保存时开始捕获数据
- 访问
http://your-server:27480 打开 Web 仪表盘
配置:所有设置均位于 config/chronovault.json 中。
命令列表
所有命令均使用 /cv 前缀。请从服务器控制台或以 OP 身份运行。
| 命令 |
描述 |
/cv backup |
立即强制创建新快照 |
/cv list |
列出所有快照及其时间、区块数和大小 |
/cv snapshots |
/cv list 的别名 |
/cv status |
显示引擎状态(队列、丢包、在线情况) |
/cv delete <id> |
永久删除一个快照 |
/cv restore <id> [x1 z1 x2 z2] |
冷恢复一个区域(需要重启) |
/cv hot-restore <id> <x1> <z1> <x2> <z2> |
热恢复一个区域(无需重启,玩家已疏散) |
/cv audit [player] [limit] |
按玩家查询实时审计事件 |
/cv config [key] [value] |
查看或设置配置(热重载生效) |
/cv schedule [now] |
显示计划任务或触发计划的备份 |
/cv reset |
重置丢包区块计数器 |
许可证
MIT。
为认真对待其世界的服务器管理员打造。
ChronoVault — Streaming Incremental Backup for Fabric
Real-time chunk-level backup with SHA-256 dedup, Zstd compression, web panel, and cloud sync. Only stores what changed — no more wasteful full-world dumps.
Why ChronoVault?
Traditional backup mods dump the entire world on a timer — slow, wasteful, and disruptive. ChronoVault captures chunks as they are saved via Mixin injection, computes a SHA-256 hash, and only stores what actually changed. This is backup built for production servers.
| Feature |
ChronoVault |
Vanilla Backup |
Fast Backups |
| Incremental (changed chunks only) |
✅ |
❌ |
❌ |
| SHA-256 dedup (no duplicates) |
✅ |
❌ |
❌ |
| Hot restore (no restart) |
✅ |
❌ |
❌ |
| Chunk-level rollback |
✅ |
❌ |
❌ |
| Web dashboard |
✅ |
❌ |
❌ |
| Cloud sync (S3/WebDAV) |
✅ |
❌ |
❌ |
| Player evacuation on restore |
✅ |
❌ |
❌ |
| Live audit (who broke/placed what) |
✅ |
❌ |
❌ |
| Section-level audit diff |
✅ |
❌ |
❌ |
| Zstd compression (~6.4:1 ratio) |
✅ |
❌ |
❌ |
| SQLite metadata (instant queries) |
✅ |
❌ |
❌ |
| Notification webhooks |
✅ |
❌ |
❌ |
| Config hot-reload |
✅ |
❌ |
❌ |
Features
Streaming Incremental Backup
ChronoVault hooks into Minecraft's chunk serialization pipeline via Mixin. Every time a chunk is saved, we capture it in real-time, hash it, and store it only if it's new. No polling, no wasted I/O.
Hot Restore with Player Evacuation
Roll back any region without restarting the server. Players in affected chunks are safely evacuated to spawn before the restore begins. Down to the minute — no world downtime.
Live Audit Tracking
Real-time block break, block place, and explosion event logging via Mixin injection. Query by player name in-game (/cv audit <player>) or via Web API. Every block change is timestamped and attributable.
Section-Level Audit Diff
Compare two snapshots at chunk-section granularity (16×16×16) using NBT hash comparison. Cross-reference with live audit logs for full player attribution on every change.
Web Dashboard (port 27480)
Built-in single-page web app for monitoring and management:
- Status — engine health, queue size, dropped chunks, player count
- Snapshots — browse, inspect, trigger manual backup
- Restore — cold or hot region restore via coordinate inputs
- Live Audit — query real-time block events by player
- Audit Diff — section-level comparison between any two snapshots
- Config — hot-reload all settings without restart
Cloud Sync
Auto-upload snapshots to S3 or WebDAV. Async worker pool never blocks the server tick. Tiered retention keeps recent snapshots local, archives older ones to cloud.
Layered Retention
Configurable retention policy: keep all snapshots for N hours, then hourly for M days, then daily for K days. Old snapshots auto-rotate with optional cloud offload.
Notification Webhooks
Discord, Slack, and Feishu webhook integration. Get notified on backup completion, restore events, and errors.
Configuration Hot-Reload
Change any setting in config/chronovault.json while the server is running. No restart needed.
Installation
- Download from Modrinth
- Place it in your server's
mods/ folder
- Requires Fabric Loader ≥ 0.16.0 and Fabric API ≥ 0.100.0
- Start the server — ChronoVault auto-configures and begins capturing on first chunk save
- Open
http://your-server:27480 for the web dashboard
Configuration: all settings in config/chronovault.json.
Commands
All commands use /cv prefix. Run them from server console or as an OP.
| Command |
Description |
/cv backup |
Force a new snapshot immediately |
/cv list |
List all snapshots with time, chunks, size |
/cv snapshots |
Alias for /cv list |
/cv status |
Show engine status (queue, dropped, online) |
/cv delete <id> |
Delete a snapshot permanently |
/cv restore <id> [x1 z1 x2 z2] |
Cold-restore a region (restart required) |
/cv hot-restore <id> <x1> <z1> <x2> <z2> |
Hot-restore a region (no restart, players evacuated) |
/cv audit [player] [limit] |
Query live audit events by player |
/cv config [key] [value] |
View or set config (hot-reloads) |
/cv schedule [now] |
Show schedule or trigger scheduled backup |
/cv reset |
Reset dropped chunk counter |
License
MIT.
Built for server admins who take their worlds seriously.
评论 0
登录后参与评分
还没有评论,来抢沙发吧