SyncBackupPlugin

插件

· 作者 1510ty

一款适用于 Paper 及其衍生版本的快速且安全的同步世界备份插件。包含自动备份轮换、语言支持和简单配置。

0 本站下载 0 关注 更新于 11 个月前

最新 1.0.2 · 26.2 · Paper

一键开服(送7天)

SyncBackupPlugin

日文说明见下方。

English

功能

・按指定间隔自动执行世界备份。
・世界复制以同步方式执行,确保安全性。
・Zip 压缩以异步方式执行,速度更快。

主要功能

・定期世界备份
・使用 /sbp backup now 命令触发即时备份

支持/测试环境

・测试版本:Paper 1.21.10 build 113
・官方支持 Paper 1.21.8 及以上版本。在大多数 Paper 分支上也应该可以正常运行。

安装方法

  1. 下载插件 jar 文件。
  2. 将 jar 文件复制或移动到服务器的 plugins 文件夹中。
  3. (重新)启动服务器。
  4. 完成!

配置

当服务器(重新)启动时,会在 plugins 文件夹内创建一个 SyncBackupPlugin 文件夹。
其中包含一个 config.yml 文件。
默认内容如下:

#Specify the language file (do not write .yml)
language: en_US

#Time from server startup to first backup
initialDelaySeconds: 600 #Default: 600

#Backup latency beyond the first backup

loopIntervalSeconds: 3600 #Default: 3600

#Set how many previous backups to save. Specifying -1 means no limit.
maxBackups: 20

# Please enter 0-9.
#The smaller the number, the faster the speed and the larger the file size.
#The larger the number, the slower the speed and the smaller the file size.
zipCompressionLevel: 1 #Default: 1

要更改 language,请修改语言字段。
例如,将其设置为 ja_JP 将使插件从 lang 文件夹加载 ja_JP.yml。
需要重启服务器才能使更改生效。
其他设置请参考 config.yml 中的注释说明。

其他

源代码在 GitHub 上公开可用。
开发环境:IntelliJ IDEA

日本語

このプラグインの特徴

・設定した時間ごとに自動的にワールドのバックアップを実行します。
・ワールドのコピーは同期的に実行されるため、安全です。
・zip化は非同期のため、高速です。

具体的な追加要素

・定期的なワールドのバックアップ
・/sbp backup now コマンドで即座にバックアップを開始します。

動作環境/テスト環境

テスト環境: Paper 1.21.10 build 113
公式サポートは Paper 1.21.8 以降のみですが、おそらく Paper のフォークでも動作します。

導入方法

  1. プラグインの jar をダウンロード
  2. サーバーの plugins フォルダにダウンロードしたプラグイン(jar)をコピーまたは移動
  3. サーバーを(再)起動
  4. 完了!

configについて

サーバーを(再)起動すると、サーバーの plugins フォルダ内に SyncBackupPlugin フォルダが生成されます。
その中に config.yml が生成されています。
初期状態の中身はこのようになっています。

#Specify the language file (do not write .yml)
language: en_US

#Time from server startup to first backup
initialDelaySeconds: 600 #Default: 600

#Backup latency beyond the first backup

loopIntervalSeconds: 3600 #Default: 3600

#Set how many previous backups to save. Specifying -1 means no limit.
maxBackups: 20

# Please enter 0-9.
#The smaller the number, the faster the speed and the larger the file size.
#The larger the number, the slower the speed and the smaller the file size.
zipCompressionLevel: 1 #Default: 1

言語を変更する場合は、language項目を変更します。
例えば、ja_JPとした場合、プラグインは lang フォルダ内の ja_JP.yml を読み込みます。
適応にはサーバーの再起動が必要です。
その他の項目は config.yml 内のコメントを参考にしてください。

その他

ソースコードは GitHub で公開しています。 開発環境: IntelliJ IDEA

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源