SyncBackupPlugin

A fast and safe synchronous world-backup plugin for Paper and its forks. Includes automatic backup rotation, language support, and simple configuration.

50

SyncBackupPlugin

SyncBackupPlugin

日本語の説明は下の方にあります

English

Features

・Automatically performs world backups at specified intervals.<br> ・World copying is done synchronously for safety.<br> ・Zip compression is done asynchronously, making it fast.

Key Functions

・Regular world backups<br> ・/sbp backup now command to trigger an immediate backup

Supported/Test Environment

・Tested on: Paper 1.21.10 build 113<br> ・Officially supports Paper 1.21.8 and above. It should also work on most Paper forks.<br>

Installation

1.Download the plugin jar.<br> 2.Copy or move the jar into your server's plugins folder.<br> 3.(Re)start your server.<br> 4.Done!

Configuration

When the server is (re)started, a SyncBackupPlugin folder will be created inside the plugins folder.<br> Inside, you will find a config.yml file.<br> The default contents are as follows: ``` #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 ``` To change the ```language```, modify the language field.<br> For example, setting it to ```ja_JP``` will make the plugin load ```ja_JP.yml```from the lang folder.<br> A server restart is required for changes to take effect.<br> Other settings are explained in the comments within config.yml.

Others

The source code is publicly available on GitHub.<br> Development Environment: IntelliJ IDEA

日本語

このプラグインの特徴

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

具体的な追加要素

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

動作環境/テスト環境

テスト環境: Paper 1.21.10 113<br> 公式サポートはPaper1.21.8以降のみですが、おそらくPaperのフォークなら動作します。

導入方法

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

configについて

サーバーを(再)起動すると、サーバーのpluginsフォルダ内にSyncBackupPluginフォルダが生成されます。<br> その中にconfig.ymlは生成されています。<br> 初期状態の中身はこのようになっています ``` #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```項目を変更します。<br> 例えば、```ja_JP```とした場合、プラグインはlangフォルダ内のja_JP.ymlを読み込みます。<br> 適応にはサーバーの再起動が必要です。<br> その他の項目はconfig.yml内のコメントを参考にしてください。

その他

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

ADS