Skip to content

How to Update Your Valheim Server

Zerobandwidth edited this page Mar 1, 2021 · 3 revisions

TL;DR

The server updates on its own when it is restarted. There are numerous ways to do this, but below we'll walk through backing up your data and restarting the server.

Detailed Guide

You can update your server through the Menu System script or by following the information below

1. ssh into your Ubuntu VM

2. Stop the Valheim Server Service (MUST DO FIRST)

In order to help prevent data loss, stop your server using the command below:

sudo systemctl stop valheimserver.service

3. Wait 1-2 mins

Give the service time to shutdown properly. Failure to do so could result in via incomplete backup files.

4. Make a copy of your Valheim World Data Files (Optional but highly recommended)

These commands will copy your server data files as a backup, should you experience any data loss. You can skip this step, but do so at your own risk.

The 2 files to backup are: WorldNameFile.db & WorldNameFile.fwl located in the cp /home/steam/.config/unity3d/IronGate/Valheim/worlds directory. WorldNameFile is a placeholder and needs to be replaced with the name of your server.

Use the commands below and replace WorldNameFile with your server's name:

cp /home/steam/.config/unity3d/IronGate/Valheim/worlds/WorldNameFile.db /home/steam/.config/unity3d/IronGate/Valheim/worlds/WorldNameFile.dbGood

cp /home/steam/.config/unity3d/IronGate/Valheim/worlds/WorldNameFile.fwl /home/steam/.config/unity3d/IronGate/Valheim/worlds/WorldNameFile.fwlGood

5. Start the Valheim Server Service

sudo systemctl start valheimserver.service

6. Wait 1 -2 mins

Give the service time to spin back up.

7. Game on

Server should be updated and you can connect as you normally do.

  翻译: