22 releases

0.1.22 Dec 20, 2021
0.1.21 Dec 20, 2021

#142 in Games

Download history 41/week @ 2024-02-17 33/week @ 2024-02-24 1/week @ 2024-03-09 49/week @ 2024-03-30 5/week @ 2024-04-06

54 downloads per month

MIT license

11KB
186 lines

cuprite

A fast and simple Minecraft server backup daemon.

Video demonstration

Install

Pre-compiled binaries (only available for x86-64 Linux systems)

sudo chmod +x cuprite

Compiling from source

If you are on another platform, compile the binary yourself to try it out:

git clone https://github.com/tropicbliss/cuprite
cd cuprite
cargo build --release

Compiling from source requires the latest stable version of Rust. Older Rust versions may be able to compile cuprite, but they are not guaranteed to keep working.

The binary will be located in target/release.

Usage

./cuprite -i world plugins -m 128 -o backups -P password -p 25575 -c 3

Enable RCON

# server.properties

enable-rcon=true
rcon.password=<your password>
rcon.port=<1-65535>
broadcast-rcon-to-ops=false

Command line arguments

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --compression-level <compression-level>    Compression level [default: 3]
    -i, --input-dirs <input-dirs>...               Input directories (directories to backup)
    -m, --max-backups <max-backups>                Maximum number of backups to keep [default: 128]
    -o, --output-dir <output-dir>                  Output directory
    -P, --password <rcon-password>                 RCON password
    -p, --port <rcon-port>                         RCON port [default: 25575]

Automating backups with CRON

It's a good idea to run cuprite on the terminal first to verify that you have inputted your arguments correctly before attempting to automate your backups with CRON.

  • Edit the crontab with crontab -e
0 * * * * /path/to/cuprite -i minecraft/world minecraft/world_nether minecraft/world_the_end -o minecraft/backups -P password

Disclaimer

This software does not provide any warranty with regard to any loss of data.

Dependencies

~12–26MB
~352K SLoC