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。
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.
下载 X Backup
下载 X Backup
下载 X Backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 X Backup
下载 X Backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 X Backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 X Backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 X Backup
下载 X Backup
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 X Backup
0.3.14
重构重启逻辑。由于存在大量模组不兼容问题,自动重启现在默认禁用。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧