Backups during Valheim’s early access period are extremely important. My dedicated server has already experienced the dreaded “world eater” bug twice. One time was during the very first update and the second time was during a routine restart. What happens is the world will be exactly the same (generated from the same seed) but any modifications/buildings/anything you did on the server will be gone.
This will likely continue to get patched and fixed eventually but during early access it’s extremely important to back up your server. I recommend backing up your world literally every time you restart the server or perform an update. This guide will show you where to find the files and how to back them up/restore them!
Valheim Dedicated Server World Folder Location
Let’s start with where the Valheim dedicated server “worlds” folder actually is. It is located in your user profile’s AppData/LocalLow folder, or typed into explorer:
%userprofile%\AppData\LocalLow\IronGate\Valheim\worlds -OR- C:\Users\yourusername\AppData\LocalLow\IronGate\Valheim\worlds
Above you can see a screenshot of my folder structure. The active world I am hosting is this screenshot is called “BestLand”. The two files you want to grab are the .db file and the .fwl file. I’m honestly not sure what the fwl file does (it’s very small and doesn’t have much in there) but the file timestamp updates frequently so it is definitely storing something so for a complete backup I backup both files.
The paths use environment variables with ‘%’ so it should locate the correct path no matter what your username is.
You can do it the very lazy way like I have done it in the above screenshot and just select both files and then Ctrl+C (Copy) and then Ctrl+V (Paste) right into the same window and Windows will automatically rename it to Copy(1), Copy(2), etc. for you.
For a fancier setup you could set up a network shared folder (CIFS) or use an external drive and rename the backups to the current date. The important thing is that you have a copy of both the yourworld.db file and the yourworld.fwl file stored somewhere safe!
You could also automate this using scripting. You could even write a quick script to send backup copies to a FTP server!
Restoring a Backup
If you need to restore one of your backups fortunately IronGate has made it very easy. Completely close the dedicated server first before doing anything. Now remove your current world.db and world.fwl files and rename one of your backups back to same name the files you removed were removing the Copy(1) part or any other custom naming you may have given it.
Once you have renamed your 2 backup file copies to the original file name you can start the server again. Give it a little bit of time to start up before trying to connect as it always seems to take a minute or two before the console window will settle down and stop scrolling loading text and be ready for active connections.
To learn how to back up your local game world and characters check out my Backing Up Valheim Local Worlds and Characters Guide
If you are experiencing any lag on your dedicated server you may want to check out my Valheim Dedicated Server Raising Send / Receive Limits Guide!