Chrisae9 / chis-website

A simple blog-style website that serves as a record-keeper for my projects and accomplishments.
https://chis.dev
MIT License
0 stars 0 forks source link

pz-server/ #2

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Project Zomboid Server | Chis.Dev

Another day another server! Here is how to get a simple Project Zomboid Dedicated Server up and running. You will no longer have to overheat your gaming pc/laptop by hosting a server while playing with your friends. Installing SteamCMD Make sure that SteamCMD is installed on the…

https://chis.dev/pz-server/

MysterTwitch commented 1 year ago

Thank you for the writeup, very helpful. I have it all going except the Discord Control, excited to try that next.

Question about stopping the server.

When running as a daemon and using the stop command, does the sever still save on exit as if you had the terminal open and quit out?

2nd follow up question: From what I can tell Zomboid does a backup at server launch, which could be long intervals. Is there a way to have regular backups run on a live server?

Chrisae9 commented 1 year ago

The server saves on exit so you should be fine.

If I was going to do this again, I would start with the project zomboid docker image. https://hub.docker.com/r/cyrale/project-zomboid

Then I would write a custom cronjob to connect to the server via the RCON port and perform a manual save.

The script would look like:

  1. check if the docker image is running
  2. connect via RCON and save game
  3. Zip/tar the server-data & server-files directories

There is probably a better way to do this but this should work!