TransWikia.com

Downloading minecraft server data from docker container loads old version of map

Arqade Asked on August 28, 2021

I am using itzg/docker-minecraft-server, with the following docker-compose config

version: '3'

services:
  minecraft:
    ports:
      - "25565:25565"
    volumes:
      - "mcbig:/data"
    environment:
      OVERRIDE_SERVER_PROPERTIES: "true"
      EULA: "TRUE"
      MAX_MEMORY: 1G
      MAX_BUILD_HEIGHT: 256
      VIEW_DISTANCE: 15
      LEVEL_TYPE: LARGEBIOMES
      MAX_PLAYERS: 10
      CONSOLE: "false"
      ONLINE_MODE: "false"
      REPLACE_ENV_VARIABLES: "TRUE"
      ENV_VARIABLE_PREFIX: "CFG_"
      CFG_DB_NAME: "yatagarasu"
    image: itzg/minecraft-server
    restart: always
  rcon:
    image: itzg/rcon
    ports:
      - "4326:4326"
      - "4327:4327"
    volumes:
      - "rcon:/opt/rcon-web-admin/db"
  backups:
    image: itzg/mc-backup
    environment:
      BACKUP_INTERVAL: "1d"
      # instead of network_mode below, could declare RCON_HOST
      RCON_HOST: minecraft
    volumes:
    # mount the same volume used by server, but read-only
    - mcbig:/data:ro
    # use a host attached directory so that it in turn can be backed up
    # to external/cloud storage
    - /home/azureuser/mcpc/serverdata:/backups
    # share network namespace with server to simplify rcon access
    # network_mode: "service:minecraft"
volumes:
  mcbig:
  rcon:

Now, the backups seem to work, but the backups taken load a map that is at a much earlier point in history, where we just started. Nothing has been built but my inventory contains some lamb off of a few sheep i killed, before maybe turning cheats on, I don’t remember exactly. The live server still has everything built and loads fine. The map persists over restarts even. using /save-all or /save-on changed nothing.

Trying to enter the container and manually copying the world results in much of the same. I’d support the backup docker image also does the exact same thing. Albeit over a common network among the container.

I would like to close my vps and as such need to take a backup of the minecraft server that I can run locally. Thanks in advance!

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP