Docker image for periodic minecraft backups
537
This image makes periodic backup of a minecraft server. Your minecraft server must have remote connection activated.
| Volume | Required | Description |
|---|---|---|
/minecraft/backup | Yes | Where to save the backups. |
/minecraft/$WORLD_NAME | Yes | Your world directory. |
| Variable | Required | Description |
|---|---|---|
PUID | No | The UID of the user running the backups. |
GUID | No | The GID of the user running the backups. |
RCON_ADDR | Yes | The RCON address of the minecraft server. |
RCON_PORT | Yes | The RCON port of the minecraft server. |
RCON_PASS | Yes | The RCON password of the minecraft server. |
WORLD_NAME | Yes | The name of your world mounted in /minecraft |
This example assumes that the minecraft server is running in a container named minecraft.
docker run \
--detach \
--name "minecraft-backup" \
--env PUID=$(id -u docker) \
--env PGID=$(id -g docker) \
--env RCON_ADDR="127.0.0.1" \
--env RCON_PORT="25566" \
--env RCON_PASS="5rV2VIciqK/IU4ns1thi/UVe2AZ8GGWI" \
--env WORLD_NAME="world" \
--volume "/srv/minecraft/world:/minecraft/world:ro" \
--volume "/srv/minecraft/backup:/minecraft/backup" \
--net="container:minecraft" \
"theniceguy/minecraft-backup"
Content type
Image
Digest
Size
47.3 MB
Last updated
almost 8 years ago
docker pull theniceguy/minecraft-backup