cuprite

Crates.iocuprite
lib.rscuprite
version0.1.22
sourcesrc
created_at2021-12-09 08:04:41.356703
updated_at2021-12-20 07:55:31.88672
descriptionA fast and simple Minecraft server backup daemon
homepagehttps://github.com/tropicbliss/cuprite
repositoryhttps://github.com/tropicbliss/cuprite
max_upload_size
id495026
size34,769
tropicbliss (tropicbliss)

documentation

https://github.com/tropicbliss/cuprite

README

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.

Commit count: 76

cargo fmt