jsknnr / enshrouded-server

Run Enshrouded dedicated server in a container
MIT License
176 stars 20 forks source link

No persistent storage? #33

Closed olterman closed 5 months ago

olterman commented 5 months ago

After having gotten it to work, there are no files in my savegame forlder, the folder is mounted as it should ... are the files seaved in a different location in the docker container ?

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8a0002817f1c sknnr/enshrouded-dedicated-server:v2.0.1 "/home/steam/entrypo…" 7 hours ago Up 7 hours 0.0.0.0:15636-15637->15636-15637/udp, :::15636-15637->15636-15637/udp steam_enshrouded_1

docker inspect -f '{{ .Mounts }}' 8a0002817f1c

[{volume steam_enshrouded-persistent-data /home/docker/volumes/steam_enshrouded-persistent-data/_data /home/steam/enshrouded/savegame local rw true }]

jsknnr commented 5 months ago

It definitely persists. The server saves every 5 minutes.

olterman commented 5 months ago

Well there are no files in there and I played for hours

DutchKevv commented 5 months ago

I'm using this container since 2 days, multiple players and even restarted the container 2 times.

Data definitely persists.

Maybe you got a permission issue?

bugbountyguy commented 5 months ago

For myself I set a local folder for storage:

    volumes:
      - ./game:/home/steam/enshrouded

Required me creating the savegame folder and manually setting permissions, but that got me going with data I could access and not risk losing when doing a docker-compose down -v. That being said, as mentioned above, you should still have your data - unless you changed your container name or storage name and such, maybe that'd cause it to mismatch? Just re-checked mine and definitely still good on my save game.

olterman commented 5 months ago

ok so, I was under false impression that it would create savegame dtat in my /home/steam /enshrouded/savegame that I had changed ownership to steam uid 10000 it does create the savegame data in the docker folder under volumes ...

nanimosiranai commented 5 months ago

ok so, I was under false impression that it would create savegame dtat in my /home/steam /enshrouded/savegame that I had changed ownership to steam uid 10000 it does create the savegame data in the docker folder under volumes ...

I want to backup saved data manually. Could you please tell me about this command?