diff --git a/Backup-%26-Restore.md b/Backup-%26-Restore.md new file mode 100644 index 0000000..8e44a6e --- /dev/null +++ b/Backup-%26-Restore.md @@ -0,0 +1,227 @@ +
+ This page explains how world backups work in the + Managed Valheim server, including both the container’s + automated backup system and Valheim’s own internal rolling backup mechanism. + Together, these provide multiple layers of protection for your world data. +
+ ++ The Managed Valheim server provides two independent backup systems: +
+ ++ Understanding both systems ensures safe restores and reliable world recovery. +
+ ++ Valheim automatically maintains a set of rolling backups for each world. These + backups are stored alongside the main world files and are created by the game + itself during save operations. +
+ ++ Internal backups are located here: +
+ +/root/.config/unity3d/IronGate/Valheim/worlds_local/<WORLD_NAME>
+
++ Inside this directory, you will see files such as: +
+ +<WORLD_NAME>.db — primary world database<WORLD_NAME>.fwl — world metadata<WORLD_NAME>_1.db<WORLD_NAME>_2.db<WORLD_NAME>_3.db<WORLD_NAME>_4.db<WORLD_NAME>_5.db+ Valheim rotates these files automatically, keeping the last 5 save states. + These backups are not compressed and not pruned + by the container — they are fully managed by the game. +
+ +
+ You can restore from these internal backups by replacing the main
+ .db and .fwl files with one of the numbered versions.
+
+ In addition to Valheim’s internal backups, the container provides a + configurable backup system that creates timestamped ZIP archives of the entire + world directory. +
+ ++ Backups are stored in: +
+ +/backups
+
++ Each backup follows this naming format: +
+ +<WORLD_NAME>_YYYY-MM-DD_HH-MM-SS.zip
+
++ Configure backup behavior using environment variables: +
+ +| Variable | +Default | +Description | +
|---|---|---|
BACKUP_INTERVAL |
+ 21600 | +Backup interval (seconds). Default is 6 hours. | +
BACKUP_RETENTION_DAYS |
+ 7 | +Days to retain backups before pruning. | +
+ These values can be changed at any time without rebuilding the container. +
+ ++ During each backup cycle, the container: +
+ +/backupsBACKUP_RETENTION_DAYS+ This process runs in the background and does not interrupt gameplay. +
+ +/backups./root/.config/unity3d/IronGate/Valheim/worlds_local/<WORLD_NAME>
+ + If you prefer to use Valheim’s built-in backups: +
+ +/root/.config/unity3d/IronGate/Valheim/worlds_local/<WORLD_NAME>
+ _3.db).<WORLD_NAME>.db<WORLD_NAME>.fwl+ The server will load the restored world automatically. +
+ +/backups volume is mounted.BACKUP_INTERVAL is set correctly.BACKUP_RETENTION_DAYS is set.+ With both backup systems available, your Valheim world is protected against + corruption, mod issues, and accidental loss. +