DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk13 min

How to Automatically Back Up a Valheim Dedicated Server

Use Valheim’s rotating local backups for quick rollback, then schedule timestamped copies of the actual -savedir directory to storage outside the server. This guide covers Windows and Linux paths, settings, scheduling, retention, consistency, and recovery.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The reliable way to protect a Valheim dedicated server is to use two backup layers: leave Valheim’s own rotating backups enabled for fast rollback, and regularly copy the server’s actual save directory to storage outside the live server. The first layer handles a recent mistake; the second can survive a failed disk, deleted files, or a damaged server installation.

Automation must target the directory supplied with the server’s -savedir argument. If that argument is absent, use the platform default. Schedule the copy after a completed world save, or briefly quiesce the service, so the archive contains a consistent set of world and permission files.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the two-layer backup plan protects you from

Valheim’s built-in backup rotation is local to the server environment. It is quick to use when someone builds over the wrong area, deletes an item, or discovers a problem shortly after it happens. It does not provide full disaster recovery: a failed system disk, an accidental deletion of the whole save directory, or a configuration mistake can affect both the live files and their local rotations.

An external or remote copy creates a separate failure boundary. An external hard drive, portable SSD, NAS, or another host can retain dated generations after the original server storage is lost. Keep that destination outside the live save directory. A backup folder inside the source can be copied into itself, consume space, and disappear along with the source.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Approach Recovery speed Failure scope Consistency Cost and capacity Retention control
Valheim rotating backups Fastest for recent mistakes Usually the same server environment Managed by the game’s save process Uses local disk space Fixed by the server’s backup settings
Scheduled external or remote copy Depends on copy size and destination Can survive loss of the server host Best when coordinated with a completed save External drives have an upfront cost; remote storage adds recurring cost and network dependence Age- and count-based pruning are configurable

Use both. Treat local rotation as a short rollback window and the second copy as your disaster-recovery archive.

Find the save directory Valheim is actually using

Before creating a scheduled job, inspect the launch script, service unit, container configuration, or control-panel startup command. The -savedir [PATH] launch argument overrides Valheim’s default location. Your backup job must use that supplied path, not a guessed platform default.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Platform Default save root
Windows %USERPROFILE%AppDataLocalLowIronGateValheim
Linux ~/.config/unity3d/IronGate/Valheim

Verify the path and its contents

  1. Open the command that starts the dedicated server.
  2. Record the value immediately following -savedir, if present. Resolve environment variables and relative paths to an absolute path.
  3. If no override exists, use the default for the operating system in the table.
  4. Confirm that the directory changes when the world saves. Include the world files and permission files in the backup scope; do not copy only a single file.
  5. Check that the account running the server can read every file and that the account running the backup job can read the source and write the destination.

If the server runs in a container or under a service manager, the path visible inside that environment may be different from the host path. Back up the host directory that is actually mounted or passed to the server, and keep the destination on a different path or host.

Keep Valheim’s built-in rotation enabled

Iron Gate’s dedicated-server guide documents these defaults (the guide was published approximately in 2024 and accessed October 15, 2026):

Argument Default Effect
-saveinterval 1800 seconds World save every 30 minutes
-backups 4 Retain four automatic backups
-backupshort 7200 seconds First automatic backup after 2 hours
-backuplong 43200 seconds Subsequent backups every 12 hours

With those defaults, the four rotating points are approximately two, 14, 26, and 38 hours old when the rotation is full. The exact age depends on when the server starts and when saves complete. Increasing the count or changing intervals can widen the local rollback window, but these files still remain on the server environment. Do not disable rotation merely because you also have an external archive.

How to choose local settings

The default rotation is a useful safety net for a mistake discovered the same day. If players build or explore for long sessions, consider whether four points provide enough local history, then adjust the backup count or intervals in the launch configuration. Keep in mind that more local generations consume space on the same server disk and still cannot protect against that disk failing. Use local settings for speed, not as a substitute for an off-machine copy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build an external backup job

Choose a destination that is not a subdirectory of the source. Give each run a timestamped directory, then prune old generations by both age and count. A dated, immutable-looking generation is easier to identify during an emergency than one archive that is continually overwritten.

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Windows PowerShell example

Edit the two variables to match your resolved -savedir and an external drive or network path. This example creates a new generation for each run and does not mirror-delete files from older generations.

$SaveDir = 'C:ValheimSaves'
$BackupRoot = 'E:Valheim-Backups'
$Stamp = Get-Date -Format 'yyyy-MM-dd_HH-mm-ss'
$Destination = Join-Path $BackupRoot $Stamp

New-Item -ItemType Directory -Path $Destination -Force | Out-Null
robocopy $SaveDir $Destination /E /COPY:DAT /DCOPY:DAT /R:2 /W:5
if ($LASTEXITCODE -ge 8) { exit $LASTEXITCODE }

Get-ChildItem $BackupRoot -Directory |
  Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-7) } |
  Remove-Item -Recurse -Force

Schedule the script in Windows Task Scheduler. Set it to run under an account that can read the save directory and write to the destination. Configure a retention period that matches your available space; the seven-day value above is an example, not a Valheim requirement. Review the task’s result code and Windows event history after the first runs.

For a removable drive, assign it a stable drive letter or update the script whenever Windows assigns a different one. Do not let a missing drive silently turn the backup path into a normal folder on the server disk. A simple preflight check that the destination exists and has the expected volume can prevent this mistake. Keep the task’s “last run” status visible to whoever administers the server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Linux shell and cron example

Set SAVEDIR to the path from the launch configuration and BACKUPROOT to a mounted external disk, NAS path, or remote mount. The script below makes a separate generation and removes generations older than seven days.

#!/bin/sh
set -eu
SAVEDIR="/srv/valheim/saves"
BACKUPROOT="/mnt/valheim-backups"
STAMP="$(date +%Y-%m-%d_%H-%M-%S)"
DEST="$BACKUPROOT/$STAMP"

mkdir -p "$DEST"
rsync -a "$SAVEDIR/" "$DEST/"
find "$BACKUPROOT" -mindepth 1 -maxdepth 1 -type d -mtime +7 -exec rm -rf -- {} +

Save it outside the live save directory, make it executable, and run it from a scheduler such as cron or a systemd timer. A cron entry such as 17 * * * * runs hourly at 17 minutes past the hour; choose a time that follows a completed world save on your server. Test the script manually first, then inspect the destination and scheduler logs.

If the destination is remote, make sure the mount is present before the job runs. A failed mount can otherwise cause data to be written to an ordinary local folder with the same path, giving a false impression that the off-machine copy succeeded. Have the job report non-zero errors so you can act on a disconnected drive, full destination, or permission failure.

Estimate storage before selecting a schedule

Measure the current save directory and multiply that size by the number of generations you intend to retain, allowing additional room for growth and temporary copy files. For example, an hourly schedule with a three-day window creates as many as 72 dated generations before pruning. A daily schedule with a 30-day window creates up to 30. The exact requirement depends on how large the world and permission files become, but the arithmetic helps you compare an external drive’s one-time capacity with a remote service’s recurring storage and transfer charges.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Frequency should follow the amount of progress players can afford to lose. Hourly copies limit the likely gap to about an hour when the job succeeds; daily copies are cheaper and simpler but may lose most of a day’s activity after a failure. Keep Valheim’s local rotation for immediate rollback even when the external schedule is less frequent.

Schedule copies around completed saves

Copying while Valheim is writing can capture an inconsistent set of files. A multi-file world save may have some files from before the save and others from during it. Community container implementations address this with consistency checks or retries, but the conservative approach is to coordinate the archive with the server’s save cycle.

Use a post-save window

  1. Determine the effective -saveinterval; the documented default is 1,800 seconds.
  2. Choose a backup time shortly after an expected save completion, allowing enough buffer for the server and storage to finish writing.
  3. Run the copy during that window and record failures rather than silently retrying forever.
  4. If the server’s activity makes timing uncertain, briefly stop or quiesce the service for the archive step when the player population allows it.

Stopping the service is the strongest consistency guarantee, but it causes downtime. An active-file copy is more convenient and can be adequate when your job verifies that files are no longer changing. Whichever policy you choose, document it so an operator knows whether a generation was made from a live or quiesced server.

Avoid starting several large generations at once. If one copy is still running when the next scheduled time arrives, have the scheduler skip or serialize the second run rather than allowing competing reads and writes. After each run, check that the destination contains the expected world and permission files and that its newest timestamps are plausible. A completed process with an empty or partial destination is not a successful backup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a retention policy that matches your risk

Retention has two independent dimensions: how far back you can recover and where those generations live. Keeping 30 hourly copies on the same disk does not protect against that disk failing.

Policy element Decision to make Why it matters
Local rotation Keep Valheim’s four-backup default or increase its count Provides the quickest rollback for recent errors
External frequency Hourly, every few hours, or daily, based on how much progress players can lose Sets the maximum likely gap between generations
Maximum age For example, seven, 14, or 30 days Determines whether you can recover an older, unnoticed corruption
Maximum count Cap generations as well as age Prevents a high-frequency job from filling the destination
Destination External disk, NAS, or remote host Determines whether host-disk loss also destroys the archive

One container implementation documents hourly external backups with a three-day default age and configurable maximum age and count. That is an example policy to adapt, not a universal Valheim requirement. Select a window that covers the longest period in which corruption might go unnoticed, and check that the destination has enough capacity for the resulting number of generations.

External drive versus remote destination

An external hard drive or portable SSD is a practical physical destination for dated archives. It has an upfront cost, does not depend on an internet connection during every run, and can be disconnected from the server when not in use. Disconnecting reduces the chance that ransomware, an administrator mistake, or a failing host will erase every copy, although it also means unattended jobs cannot run while the drive is removed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

A NAS keeps the storage available on the local network and can serve several machines, but it remains vulnerable to the same power event or network incident unless it is in a separate location. A remote host provides better protection against loss of the server room and can run continuously, but it adds recurring storage or hosting cost, network dependence, and mount or authentication failure modes. Whichever destination you select, keep at least one copy outside the live save directory and verify that it is genuinely reachable.

Restore a world after corruption or disk failure

Do not overwrite the only remaining copy while investigating. Preserve the failed state first, then restore a selected generation into the configured save root.

  1. Stop the dedicated server cleanly. Do not replace files while the process is running.
  2. Make a safety copy of the current save directory, including its timestamp, before changing anything.
  3. Identify the generation to restore. For a recent mistake, Valheim’s local rotation may be fastest; for host loss or deleted files, use an external or remote dated generation.
  4. Copy the selected generation into the path specified by -savedir, or into the platform default if no override is configured. Preserve the expected directory structure rather than nesting the save one level too deep.
  5. On Linux, set ownership and permissions to the account that normally runs the server. The exact account name varies by installation; verify it from the service definition instead of assuming one.
  6. Check that the launch command still points to the intended save root and world.
  7. Start the server and confirm that the expected world, player progress, and permissions are present. Have a player connect and inspect a known location before declaring the restore successful.
  8. Keep the original failed directory and the restored generation until the server has been checked and a new external backup has completed.

If the restored world does not appear, stop again and verify the path, directory nesting, file ownership, and world name in the startup configuration. Do not repeatedly overwrite the preserved copy while troubleshooting.

Common restoration mistakes

  • Wrong save root: restoring to the platform default while the service uses -savedir leaves the server reading the old or empty location.
  • Nested directory: copying a generation so that the world files sit one level below the directory Valheim scans prevents the expected world from appearing.
  • Missing permissions: a Linux service account may be unable to read files copied by an administrator account until ownership is corrected.
  • Choosing the newest generation automatically: the newest copy may already contain corruption. Compare timestamps and symptoms, and choose a generation from before the problem.
  • Deleting the failed state too soon: the original directory can help diagnose a bad restore or identify which generation is safe.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Operational checks that prevent silent backup failure

  • Check the source: confirm the job still targets the current -savedir after server migrations or configuration edits.
  • Check the destination: verify that the external disk or remote mount is present and that free space is sufficient.
  • Check freshness: inspect the newest generation’s timestamp and file count after each scheduler change.
  • Check errors: configure Task Scheduler, cron, systemd, or your container platform to record failed exit codes and notify an administrator.
  • Check isolation: ensure the destination is not inside the source and, for disaster protection, is not permanently attached to the same host.
  • Check restores: periodically restore to a separate test copy of the server data. A backup that has never been opened is only an assumption.

The documented settings and paths above come from Iron Gate’s dedicated-server guidance. Your launch script, operating-system permissions, storage layout, and scheduler determine the final implementation, so re-check them whenever the server is moved or updated.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Where does a Valheim dedicated server store its worlds?

On Windows, the default root is %USERPROFILE%AppDataLocalLowIronGateValheim. On Linux, it is ~/.config/unity3d/IronGate/Valheim. If the launch command includes -savedir [PATH], that path overrides the default and is the one your backup job must copy.

Are Valheim’s automatic backups enough by themselves?

They are useful for quick rollback, but they normally remain in the same server environment as the live data. A failed disk, accidental deletion, or bad configuration can affect both. Keep the built-in rotation enabled and add a dated copy on an external drive, NAS, or remote host.

How often should an external backup run?

Choose a frequency based on how much player progress you can lose. Hourly copies limit the likely gap to about an hour; every few hours or daily copies use less storage but leave a larger recovery gap. Schedule the job after a completed world save whenever possible.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

How many Valheim backups should I keep?

Valheim’s documented default is four automatic backups, with the first after 7,200 seconds and later backups every 43,200 seconds. For external copies, set both a maximum age and a maximum count. A seven-, 14-, or 30-day window is an operational choice, not a game requirement; choose one long enough to cover unnoticed corruption.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I back up while players are online?

You can copy active files, but a copy taken during a multi-file save may be inconsistent. The safer choices are to run shortly after the 30-minute default save completes, add a buffer, or briefly stop or quiesce the server during the copy. Record failures and do not assume a successful command means a consistent generation.

Should the backup folder be inside the Valheim save folder?

No. A destination inside the source can be copied recursively, consume space, and be lost with the source during deletion or disk failure. Put it on an external drive, NAS path, or separate host and verify that the intended mount is present before each run.

What should I do if the server disk fails?

Install or repair the server, recreate the configured save path, stop the service, and restore a dated external generation into that path. Preserve any surviving files first, set Linux ownership and permissions for the service account, confirm the world name and startup arguments, then start the server and inspect the world before deleting anything.

How do I know an automated backup really worked?

Check scheduler exit codes and logs, confirm the destination volume is mounted, inspect the newest generation’s timestamp and expected files, and watch for full-disk or permission errors. Periodically restore a generation to a separate test copy; a backup that has never been opened has not been proven usable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Bottom Line

Back up the path Valheim actually uses, not a guessed default. Keep the game’s four-point local rotation for fast rollback, then create timestamped copies after completed saves on an external drive, NAS, or remote host. Prune by age and count, monitor scheduler errors and destination space, and periodically test a restore while preserving the failed directory.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.