7 Days to Die – Auto Backup of Game

Automatically backup your save game daily and remove old saves after they’re 7 days old.

Other 7DTD Guides:

  • 100% Achievement Guide.
  • Navezgane Map (All Places of Interest).
  • Armor Explained and Ranked (Alpha 17).
  • Best PVP Base Designs and Tricks (Alpha 17).
  • How to Survive Your First Horde.
  • Weapon Mods (Alpha 17).

7 Days to Backup Full Guide

First off I’ve made this guide as there are multiple bug reports that people have lost their entire progress or entire base etc, This is the best thing to combat that within the beta stage as you can always revert to a previous day before everything went wrong.


  • First off right click somewhere (I made this on the desktop) select New>Text Document.
  • This will make a new text document on your desktop, double click it and your text editor will open most likely Notepad.
  • Copy and paste then edit the code below noting that you replace %username% with your username on your computer, this is handy if the scheduled task is running as a different user than the game saves are located in, you can probably leave it as %username% if you only have one user on your computer.

Also if you have a different backup path or only have one drive make sure to change it from D: to something else.

xcopy “C:Users%username%AppDataRoaming7DaysToDie” “D:7DaystoDieBackup%date%” /s /e /c
forfiles -p “D:7DaystoDieBackup” -d -7 -c “cmd /c IF @isdir == TRUE rd /S /Q @path”

Once you have it how you want it select File>Save As and select All Files instead of .txt and call it 7DaysToBackup.bat this will change the file type to a batch script.

For more info on what each line does, xcopy copies from “source” to “destination” and %date% adds folders for the current date so you know what day each of the backups are from.

For files checks how old the folder is as its got the @isdir == TRUE so it won’t delete subfiles/folders it will only delete from within your backup directory, the -d -7 is how old the backup must be before it is deleted, you can change this to whatever value you want just make sure that you have enough space to support the amount of copies you require.

Schedule a Task

  • Push your windows key or click start and search for “Task Scheduler”.
  • Up the top right there will be “Create Basic Task” click it.
  • The “Create Basic Task Wizard” will pop open.
  • Give your task a reasonable name such as 7DaysToBackup.
  • Click Next.
  • Daily.
  • Click Next.
  • Set a different time if you desire, if your running the game on a sever anytime is fine, if you’re running it on your own computer make sure its a time that your computer will be powered on.
  • Click Next.
  • Start a Program.
  • Click Next.
  • Browse for the 7DaysToBackup.bat file you created earlier.
  • Click Next.
  • Click Finish.

And you’re done, you will now automatically backup your save game every day and when a save is older than 7 days it will be deleted.

Leave a Comment