原作者已放弃该项目,因此我 fork 了该仓库以继续提供支持
X Backup
简体中文 | English
适用于 Fabric 的高级备份模组。
优势
- ⚡️闪电般的速度:利用多线程技术实现快速备份流程,在极短时间内完成任务,速度提升高达 50 倍。 [^1]
- ?节省空间:实施增量备份并自动压缩大文件,最大限度地减少存储空间占用。
- ?无缝还原:还原后自动重启服务器,提供无缝体验。
- ✨区域还原:仅还原指定范围内的区块,范围外的玩家不会受到影响。
- ?️灵活支持:专为支持服务器和客户端而设计,为所有备份需求提供多功能解决方案。
- ☁️自动云备份:轻松将数据备份到云端,支持 Microsoft OneDrive,确保您的信息在任何地方都安全且可访问。
用法
创建备份
您可以使用 /xb create 命令创建新备份。此命令保存游戏的当前状态,以便您稍后还原。如果您想为备份添加备注,可以在命令后加上备注,例如:
/xb create This is my first backup
这样,您就可以创建一个带有备注的备份。
查看已创建的备份
如果您想查看已创建的备份,可以使用 /xb list 命令。此命令列出所有备份,并显示每个备份的编号、创建时间和备注。例如:
/xb list
此命令显示最近 6 个备份。如果您有很多备份,可以点击灰色字体按钮查看更多备份。
还原备份
如果您想还原到特定备份,可以使用 /xb restore <id> 命令,其中 <id> 是备份的编号。例如:
/xb restore 1
此命令将游戏还原到编号为 1 的备份状态。如果您想还原特定区域,可以使用 --chunk 参数指定从哪个坐标到哪个坐标,例如:
/xb restore 1 --chunk 0 0 10 10
[!TIP] 这些是方块的 x/z 坐标,不要与区块坐标混淆。
这将把游戏还原到备份 1,但仅还原方块坐标 (0, 0) 到 (10, 10) 的区域。
计划备份配置
您可以使用 /xb backup-interval <seconds> 命令设置自动备份间隔。例如,如果您想每 3 小时自动备份一次,可以这样设置:
/xb backup-interval 10800
此命令将自动备份间隔设置为 10,800 秒(即 3 小时)。
镜像服务器配置
如果您正在使用镜像服务器,可以使用 /mirror 命令同步主服务器的最新备份。例如:
首先,您需要在主服务器上创建备份:
/xb create
然后,在镜像服务器配置中,设置主服务器的文件路径(包含 server.properties 的路径)和 blob_path,并启用镜像模式:
{
"mirror_mode": true,
"mirror_from": "C:\\MinecraftServer\\My-Server",
"blob_path": "C:\\MinecraftServer\\My-Server\\blob"
}
之后,执行 /mirror 命令。此命令将从主服务器同步最新的备份状态到镜像服务器。您还可以添加 id 参数来指定要同步的备份编号:
/mirror 1
如果您想停止服务器并还原备份,可以使用 --stop 参数:
/mirror --stop
清理不必要的备份
该模组还提供了旧备份的自动清理功能。您可以在配置文件中设置 keep_policy,例如:
{
"prune": {
"enabled": false,
"keep_policy": {
"1d": "30m",
"1w": "6h",
"1M": "1d",
"1y": "1w",
"2y": "1M"
}
}
}
此配置含义如下:
- 保留最近 1 天内每 30 分钟一次的备份
- 保留最近 1 周内每 6 小时一次的备份
- 保留最近 1 个月内每天的备份
- 保留最近 1 年内每周的备份
- 保留最近 2 年内每月的备份
您可以根据需要调整这些设置。
当 enabled 为 true 时,模组将自动清理不符合保留策略的备份。或者,您也可以使用 /xb prune 命令手动清理不必要的备份。
查看备份信息
如果您想查看特定备份的详细信息,可以使用 /xb info <id> 命令,例如:
/xb info 1
此命令将显示备份 #1 的详细信息,包括备份时间、备注、大小等。
鸣谢
本模组的部分内容(GUI)基于 CreeperHost LTD 的 BackupManager。
The original author has abandoned this project, so I forked the repository to continue providing support
X Backup
简体中文 | English
The advanced backup mod for fabric.
Advantages
- ⚡️Lightning-Fast Speeds: Utilizes multithreading technology for rapid backup processes, completing tasks in a fraction of the time, speeding up to 50 times faster. [^1]
- ?Space-Efficient: Implements incremental backups and automatically compresses large files, minimizing storage usage.
- ?Seamless Restoring: Automatically restarts the server after restoring, allowing for a seamless experience.
- ✨Regional Restoring: Restore only the chunks within a specified range, Players outside the range will not be affected.
- ?️Flexible Support: Designed to support both servers and clients, providing a versatile solution for all your backup needs.
- ☁️Automatic Cloud Backup: Effortlessly back up your data to the cloud, with support for Microsoft OneDrive, ensuring your information is safe and accessible from anywhere.
Usage
Creating a Backup
You can use the /xb create command to create a new backup. This command saves the current state of the game so you can restore it later. If you want to add a note to the backup, you can add it after the command, for example:
/xb create This is my first backup
This way, you create a backup with a note.
Viewing Created Backups
If you want to view the backups you have created, you can use the /xb list command. This command lists all the backups and displays the number, creation time, and note of each backup. For example:
/xb list
This command displays the last 6 backups. If you have many backups, you can click the gray font button to view more backups.
Restoring a Backup
If you want to restore to a specific backup, you can use the /xb restore <id> command, where <id> is the number of the backup. For example:
/xb restore 1
This command restores the game to the state of backup number 1. If you want to restore a specific range, you can use the --chunk parameter to specify the coordinates from which to which, for example:
/xb restore 1 --chunk 0 0 10 10
[!TIP] These are the x/z coordinates of the blocks, do not confuse them with chunk coordinates.
This will restore the game to backup 1, but only restore the area from block coordinates (0, 0) to (10, 10).
Scheduled Backup Configuration
You can set the automatic backup interval using the /xb backup-interval <seconds> command. For example, if you want to automatically back up every 3 hours, you can set it like this:
/xb backup-interval 10800
This command sets the automatic backup interval to 10,800 seconds (i.e., 3 hours).
Mirror Server Configuration
If you are using a mirror server, you can use the /mirror command to synchronize the latest backup from the main server. For example:
First, you need to create a backup on the main server:
/xb create
Then, in the mirror server configuration, set the main server's file path (the one containing server.properties) and blob_path, and enable mirror mode:
{
"mirror_mode": true,
"mirror_from": "C:\\MinecraftServer\\My-Server",
"blob_path": "C:\\MinecraftServer\\My-Server\\blob"
}
After that, execute the /mirror command. This command will synchronize the latest backup state from the main server to the mirror server. You can also add the id parameter to specify the backup number to synchronize:
/mirror 1
If you want to stop the server and restore the backup, you can use the --stop parameter:
/mirror --stop
Cleaning Up Unnecessary Backups
The mod also provides an automatic cleanup feature for old backups. You can set the keep_policy in the configuration file, for example:
{
"prune": {
"enabled": false,
"keep_policy": {
"1d": "30m",
"1w": "6h",
"1M": "1d",
"1y": "1w",
"2y": "1M"
}
}
}
This configuration means:
- Keep backups every 30 minutes for the last 1 day
- Keep backups every 6 hours for the last 1 week
- Keep daily backups for the last 1 month
- Keep weekly backups for the last 1 year
- Keep monthly backups for the last 2 years
You can adjust these settings according to your needs.
When enabled is true, the mod will automatically clean up backups that do not meet the retention policy. Alternatively, you can manually clean up unnecessary backups using the /xb prune command.
Viewing Backup Information
If you want to view detailed information about a specific backup, you can use the /xb info <id> command, for example:
/xb info 1
This command will display detailed information about backup #1, including backup time, notes, size, etc.
Credits
Some part (GUI) of this mod is based on BackupManager by CreeperHost LTD.
下载 NX backup
下载 NX backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NX backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NX backup
下载 NX backup
下载 NX backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 NX backup
下载 NX backup
0.3.14
重构重启逻辑。由于存在大量模组不兼容问题,自动重启现在默认禁用。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧