Sign inSign up

theniceguy/minecraft-backup

By theniceguy

•Updated almost 8 years ago

Docker image for periodic minecraft backups

Image
0

537

theniceguy/minecraft-backup repository overview

⁠Minecraft backup

This image makes periodic backup of a minecraft server. Your minecraft server must have remote connection activated.

⁠Volumes

VolumeRequiredDescription
/minecraft/backupYesWhere to save the backups.
/minecraft/$WORLD_NAMEYesYour world directory.

⁠Variables

VariableRequiredDescription
PUIDNoThe UID of the user running the backups.
GUIDNoThe GID of the user running the backups.
RCON_ADDRYesThe RCON address of the minecraft server.
RCON_PORTYesThe RCON port of the minecraft server.
RCON_PASSYesThe RCON password of the minecraft server.
WORLD_NAMEYesThe name of your world mounted in /minecraft

⁠Example

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"

Tag summary

Content type

Image

Digest

Size

47.3 MB

Last updated

almost 8 years ago

docker pull theniceguy/minecraft-backup