Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Terraria Server Backup & Restore Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Running a Terraria server means investing time in building worlds and progressing characters. A single crash, corrupted save, or accidental deletion can erase hours of work. This guide walks you through safely backing up your Terraria server files and restoring them when something goes wrong, so your world and player data stay intact.

What You'll Need

  • Access to the machine hosting the Terraria server (file system access, not just in-game admin).
  • Knowledge of where your server files are stored (see Step 1).
  • Optional but recommended: a backup destination outside the server's own drive (external drive, network share, or cloud storage).

Step-by-Step

Step 1: Locate Your Server Files

Terraria server data is stored in a folder called World (for world files) and Players (for character files). By default, these are inside the server's installation directory. If you installed via Steam, the default is steamapps/common/Terraria. For a dedicated server, it's wherever you extracted the server files. You can also find the path by checking the server config file (serverconfig.txt) or by looking for the World folder in the same directory as the executable.

Step 2: Stop the Server Gracefully

Before copying any files, you must stop the server process. Use the in-game console command exit or press Ctrl+C in the terminal window. Wait until the process fully terminates—do not just close the window, as that may not flush all data to disk. This prevents file corruption during the copy.

Step 3: Create a Backup Folder

Create a new folder on your backup destination, e.g., TerrariaBackup_2025-01-15. Use a clear naming convention with the date so you can identify versions later.

Step 4: Copy the World and Player Folders

Copy the entire World folder and the entire Players folder into your backup folder. You can also copy the serverconfig.txt and any other custom files (like a banlist.txt) if you want a full server config backup. Preserve the folder structure—do not just copy the files inside.

Step 5: Verify the Backup

After copying, check that the file sizes match the originals. On Windows, right-click the folder and select Properties; on Linux, use du -sh. Also try opening a world file with a text editor to ensure it's not empty or corrupted (it will be binary, but it should have content).

Step 6: Restore a Backup

To restore, stop the server again. Then, replace the current World and Players folders with the ones from your backup. It's safest to rename the existing folders (e.g., World_corrupt) rather than deleting them, so you have a fallback. Then copy the backup folders into the server directory, making sure they are named exactly World and Players.

Step 7: Restart the Server

Start the server again and verify that your world loads correctly and player characters appear. If you're restoring to a different machine, you may need to adjust the server config to point to the new paths, but the default setup should work.

Common Mistakes

  • Backing up while the server is running—this can result in a corrupted copy because files are in use. Always stop the server first.
  • Only copying the .wld file, not the .wld.bak—Terraria creates a .bak file automatically. If the main file is corrupted, the .bak can be used, so include it in backups.
  • Overwriting the wrong folder—make sure you're copying into the correct server directory, not a client install.
  • Not testing the backup—a backup that can't be restored is useless. Test by restoring to a separate folder or a test server occasionally.

Tips

  • Set up a scheduled backup (using cron on Linux or Task Scheduler on Windows) to automatically copy the folders daily or weekly.
  • Keep multiple backup versions—at least the last three—so you can roll back to an earlier state if a problem goes unnoticed.
  • Store backups on a different physical drive or cloud service to protect against drive failure.
  • If your server is large, consider compressing the backup folder into a .zip or .tar.gz to save space.
  • Before a major update or world edit, make a manual backup right before you make changes.

Troubleshooting

Backup fails to copy because files are in use. Ensure the server process is completely stopped. On Windows, check Task Manager for any TerrariaServer.exe processes; on Linux, use ps aux | grep terraria and kill the process if needed.

Restored world doesn't load. Check that the world file isn't corrupted by trying to load it in single-player. If it fails, try the .bak file. Also ensure the world file is in the correct folder and has the right name (e.g., World.wld).

Players are missing after restore. Verify that the Players folder is in the right location and contains the .plr files. If you restored to a different server, the player files may have different UUIDs—that's normal, but they should still appear in-game.

Server crashes on startup after restore. This may be due to a version mismatch between the world and the server version. Ensure you're using the same Terraria version as when the backup was made. If not, you may need to update the world using a tool or start a new world.

Backup is too large. If your world is massive, consider using incremental backups or only backing up the .wld and .bak files, not the entire folder (though the folder is usually small).

Frequently Asked Questions

How often should I back up my Terraria server?

It depends on how much progress you can afford to lose. For active servers, daily backups are recommended. For casual play, weekly is fine.

Can I back up while the server is running?

Technically you can copy files, but the copy may be inconsistent or corrupted because the server is writing to them. Always stop the server for a safe backup.

What files do I need to back up?

The World folder (contains .wld and .wld.bak files) and the Players folder (contains .plr files). Optionally, server config files.

Can I restore a backup to a different machine?

Yes, as long as you copy the folders to the correct locations and use the same Terraria version. Player files are tied to the character, not the machine.

What's the .wld.bak file for?

Terraria automatically creates a backup of the world before saving. If the main .wld file is corrupted, you can rename the .bak to .wld to restore the previous state.

Do I need to back up the server executable?

No, the executable can be re-downloaded. Only your world and player data are unique.