Download the latest releases for stable versions.
- Start your Minecraft server.
- Auto-restart your server in case of shutdown.
- Restart your server when server crash (based on server.jar exit code).
- Detect crash-loop to stop the script automaticaly (based on recurent amount of crashs within a defined time window).
- Backup only specified files and folder of your server.
- Handle EssentialsX
/backup
command if--essentials
parameter is specified for the command in the plugin confuguration. - Keep only X backups in your folder.
- Send your backup on a remote directory (use
rsync
is available, elsecp
). - Keep only X backups in your remote folder.
- Backup the entier server folder.
- Keep only X backups in your folder.
- Send your backup on a remote directory (use
rsync
is available, elsecp
). - Keep only X backups in your remote folder.
- Install
Git
for your OS to run.sh
scripts - Create your server folder "
server-name
" where you want. - Download the latest releases of Minecraft-Server-Template
- Extract the archive content, you will find a folder named
Minecraft-Server-Template-X.X.X
- Move all files inside the
Minecraft-Server-Template-X.X.X
folder to yourserver-name
folder - Add your server.jar file inside the
server-name/server
folder
Edit the config.yml
file. All scripts use this config file.
Each section correspond to the configuration for one specific OS.
You can setup multiple environement.
Each settings name begin with the operating system name "OSNAME_".
Setting | Type | Description |
---|---|---|
USE_COLOR | boolean | Use colors in the console output |
Setting | Type | Description |
---|---|---|
SERVER_FOLDER_PATH | string | Path to the server folder |
JAVA_EXECUTABLE | string | Command or path to execute java |
JAVA_ARGUMENTS | string | Java argument for server the server execution |
SERVER_JAR | string | Server JAR file (accept "server-*.jar" patern lastest version will be choosen) |
SERVER_JAR_ARGUMENTS | string | Arguments for the server (ex: nogui) |
BOOT_TIMER | integer | Time in seconds to wait before server starting |
REBOOT_SERVER | boolean | Should the server restart after a crash or shutdown ? |
BOOTLOOP_MAX_CRASH | integer | Maximum restart try after a crash, if a bootloop is detected stop the script |
BOOTLOOP_RESET_TIMER | integer | Time in seconds after a successful start to reset the bootloop prevention |
Setting | Type | Description |
---|---|---|
BACKUPS_EXECUTABLE | string | Command / path of the backup executable (ex: 7zip, tar...) |
BACKUPS_ARGUMENTS | string | Arguments for the backup executable |
BACKUPS_DIRECTORY | string | Directory to use for the backups files |
BACKUPS_NAME | string | Name prefix of the backup (inserted before the date) |
BACKUPS_EXTENTION | string | File extention of the backup (inserted after the date) |
BACKUPS_ITEMS | array | List of file / folder to include in the backup (Write all items of the array on the same line) |
BACKUPS_MAX | integer | Maximum number of backups stored localy |
BACKUPS_REMOTE_ENABLE | boolean | Enable or disable backups upload |
BACKUPS_DIRECTORY_REMOTE | string | Directory to use for the remote backups files |
BACKUPS_MAX_REMOTE | integer | Maximum number of backups stored remotely |
BACKUPS_PAUSE_AFTER_FINISH | boolean | Pause script after complete instead of exit |
Setting | Type | Description |
---|---|---|
DUMPS_EXECUTABLE | string | Command / path of the server dumps executable (ex: 7zip, tar...) |
DUMPS_ARGUMENTS | string | Arguments for the server dumps executable |
DUMPS_DIRECTORY | string | Directory to use for the server dumps files |
DUMPS_MAX | integer | Maximum number of dumps stored localy |
DUMPS_NAME | string | Name prefix of the dump (inserted before the date) |
DUMPS_EXTENTION | string | File extention of the dump (inserted after the date) |
DUMPS_MAX | integer | Maximum number of dumps stored localy |
DUMPS_REMOTE_ENABLE | boolean | Enable or disable dumps upload |
DUMPS_DIRECTORY_REMOTE | string | Directory to use for the remote dumps files |
DUMPS_MAX_REMOTE | integer | Maximum number of dumps stored remotely |
DUMPS_PAUSE_AFTER_FINISH | boolean | Pause script after complete instead of exit |
Please leave a star on the project if you like it.