SyncBackupPlugin
日文说明见下方。
English
功能
・按指定间隔自动执行世界备份。
・世界复制以同步方式执行,确保安全性。
・Zip 压缩以异步方式执行,速度更快。
主要功能
・定期世界备份
・使用 /sbp backup now 命令触发即时备份
支持/测试环境
・测试版本:Paper 1.21.10 build 113
・官方支持 Paper 1.21.8 及以上版本。在大多数 Paper 分支上也应该可以正常运行。
安装方法
- 下载插件 jar 文件。
- 将 jar 文件复制或移动到服务器的 plugins 文件夹中。
- (重新)启动服务器。
- 完成!
配置
当服务器(重新)启动时,会在 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 のフォークでも動作します。
導入方法
- プラグインの jar をダウンロード
- サーバーの plugins フォルダにダウンロードしたプラグイン(jar)をコピーまたは移動
- サーバーを(再)起動
- 完了!
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
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧