Skip to main content

Wrap Minecraft bedrock server to make proper backups.

Project description

Gazoo

Wrap Minecraft Bedrock server to make proper backups.

Rationale

The Minecraft Bedrock server expects input from STDIN in order to perfrom backups properly. Since no other form of IPC exists, a wrapper is used to automate sending the save commands to the Bedrock server's STDIN. The wrapper also forwards all STDIO transparently, so the wrapper acts as a drop-in replacement.

Installation

Gazoo is published to the Python Package Index (PyPI) and can be installed with pip.

pip install gazoo

Configuration

Gazoo writes all its files to a gazoo subdirectory in the current working directory. Running gazoo for the first time will create a gazoo.cfg file in the gazoo subdirectory, among other setup. The configuration file is a simple INI-style file with only a few options:

  • backup_interval
    • Time between backups (in seconds)
    • Default value: 600 (10 minutes)
  • cleanup_interval
    • Time between cleanups (in seconds)
    • Default value: 86400 (24 hours)
  • debug
    • Whether to output debug information
    • Default value: false

Usage

Please note: gazoo requires being run in the context of the Bedrock server root directory. This means you will need to cd to the Bedrock server root directory before calling gazoo, or set PWD, or something else appropriate for your situation.

By default (without any additional arguments), gazoo wraps the Bedrock server transparently (with all STDIO forwarded). Saving and cleanup is performed automatically as configured in the gazoo.cfg file.

For convenience, two commands are also provided: cleanup, and restore.

The cleanup command simply runs the cleanup portion of the program and then exits. This is useful if there are backups that need to be cleaned up, but you don't want to start the Bedrock server.

The restore command restores saves made by gazoo. If used without any additional arguments, restore restores the most recent save. An integer argument can be provided to restore the nth most recent save. E.g. passing 1 restores the first most recent save (and is equivalent to passing nothing), passing 2 restores the second most recent save, etc. Alternatively, a file path to a backup can be specified.

Similar projects

github.com/debkbanerji/minecraft-bedrock-server may provide some similar functionality (untested/unvetted).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gazoo-0.0.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gazoo-0.0.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file gazoo-0.0.2.tar.gz.

File metadata

  • Download URL: gazoo-0.0.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.7

File hashes

Hashes for gazoo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6d89dbc68f9e01fe07e2631eb5dc9f21cee4b4ba0e5bb8d7ea591fcd476ef012
MD5 147ed4c55df943d2a2cd131940f22a70
BLAKE2b-256 c5f7988150fbd3358313ca2df9c481a88c7cfdcea9ffab5d064bd2dbb1819b91

See more details on using hashes here.

File details

Details for the file gazoo-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gazoo-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.7

File hashes

Hashes for gazoo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f9c259b5959401794a7aab4afdfcd42c86a605f5ca7a5c48d98d8c0d0b0fab
MD5 739e110e1f979c55a771ccd9641d10a2
BLAKE2b-256 0b455b771dd581f1dd16c2a633a5e34c51e47bfc0c9e2a2534304464a1acb449

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page