Skip to content

This program manages all aspects of a hosting bedrock server. It will run updates, make and remove backups, update dynamic server addresses and handle automatic shutdown of the server.

License

Notifications You must be signed in to change notification settings

Djayden-R/Bedrock-Server-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bedrock Server Manager

License: MIT Platform GitHub last commit

An automated management tool for a bedrock server. It will handle updating, shutting down, making backups, handling a dynamic dns, and even connecting players on a console to the server.

How it Works

After setup, the program determines which mode to run based on configuration and timing:

  • NORMAL - Standard operating mode that updates the DNS and then updates the server if needed and lastly starts the server with automatic shutdown after inactivity
  • DRIVE_BACKUP - Initiates backup to online drive using the latest symlink via Rclone
  • INVALID - Triggered when server starts outside configured valid hours
  • CONFIGURATION - First-time setup mode when no config.yaml exists

Prerequisites

Note: This program has been tested exclusively on Ubuntu. Ubuntu is the recommended platform. For drive backup functionality, Rclone must be configured separately (tutorial below).

Installation

Initial Setup

Firstly, place the script in the desired location, then just run the following commands in that folder

chmod +x bedrock-manager
./bedrock-manager

The setup script will guide you through the configuration process.

Running the Server

./{location}/bedrock-manager

or after adding the alias

bsm

Turning off auto shutdown

If you need to work on the server without being disturbed by the automatic shutdown you will need to create the no shutdown flag, like this:

cd Bedrock-server-manager
touch no_shutdown.flag

To make it shutdown again, you'll need to remove the file again:

cd Bedrock-server-manager
rm no_shutdown.flag

Features

  • Home Assistant Integration - Manage auto shutdown via a Home Assistant switch
  • Backup Management - Create multiple backups, two to a storage device and one to a cloud service using Rclone
  • Intelligent Scheduling - Cloud backups can be scheduled in the night to make shutdown faster
  • Dynamic DNS - DynuDNS integration to make managing a url easy

Extra tutorials

To automatically start this program on boot, follow this tutorial.

To configure Rclone follow one of these tutorials:

Acknowledgments

This project integrates the following open-source tools:

Development Notes

AI assistance was utilized for specific components: load_config.py and formatting of the README.md.

About

This program manages all aspects of a hosting bedrock server. It will run updates, make and remove backups, update dynamic server addresses and handle automatic shutdown of the server.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published