Backup Mod

7 days to die backup mod

This mod makes it possible to automatically backup and restore your game saves.

Settings

You can configure the mod by modifying the ‘settings.json’ file, or you can also use the FilUnderscore’s Mod Manager. If you changed the configuration when you were in game, you should re-enter to your world to apply changed settings.

{
  "General": {
    // Backups limit
    // Default: 10
    "BackupsLimit": 10,
    
    // Custom backups folder path
    // IMPORTANT: You must escape all '\' characters or use '/'
    // Example: "C:\DaysToDie\\Backups"
    // Default: ""
    "CustomBackupsFolder": "",
    
    // Write debug information to the logs/log.txt file and to the in-game/server console
    // Default: false
    "DebugMode": false
  },
  
  "AutoBackup": {
    // Is automatic backup enabled
    // Default: true
    "Enabled": true,
    
    // Auto backup delay (seconds)
    // Min: 10
    // Default: 1200 (20 minutes)
    "Delay": 1200,
    
    // Reset the delay timer after a manual backup
    // Default: false
    "ResetDelayTimerAfterManualBackup": false,

    // Skip the next scheduled backup, if there are no players on the server
    // Default: false
    "SkipIfThereAreNoPlayers": false
  },
  
  "Archive": {
    // Keep the last backup of the day
    // Default: false
    "Enabled": false,

    // Backups limit
    // Default: 10
    "BackupsLimit": 10,
    
    // Custom archive folder path.
    // IMPORTANT: You must escape all '\' characters or use '/'
    // Example: "C:\DaysToDie\\Archive".
    // Default: ""
    "CustomArchiveFolder": ""
  },
  
  "Events": {
    // Backup when world loaded
    // Default: true
    "BackupOnWorldLoaded": true,

    // Backup when the last player on the server disconnected
    // Default: false
    "BackupOnServerIsEmpty": false
  },
  
  "Notifications": {
    // Are ALL chat notifications enabled
    // Default: true
    "Enabled": true,

    "Countdown" : {
      // Are countdown chat notifications enabled
      // Default: true
      "Enabled": true,
      
      // Do a countdown * seconds before backup starts
      // Min: 1
      // Default: 5
      "CountFrom": 5
    }
  }
}

By default, your backups for each save will be saved in the ‘%AppData%/Roaming/7DaysToDie/Backups/%WorldName%/%SaveName%‘ directory (on windows). And your archived backups for each save will be saved in the ‘%AppData%/Roaming/7DaysToDie/Archive/%WorldName%/%SaveName%‘ folder (on windows).

P.S. You can also change the UserGameData property in your serverconfig.xml or in the game startup arguments. Then by default it will use the next directories: ‘%UserGameData%/Backups/%WorldName%/%SaveName%‘ for backups, and ‘%UserGameData%/Archive/%WorldName%/%SaveName%‘ for archive.

Commands

You can use the ‘backup‘ command or its shortened version – the ‘bp‘ command.

  • backup‘ – perform a forceful backup
  • backup info‘ – show the current configuration of the mod
  • backup list‘ – show all available backups
  • backup restore‘ – restore a save from a backup
  • backup delete‘ – delete a backup
  • backup start‘ – start an AutoBackup process (even if disabled in settings.json)
  • backup stop‘ – stop the current AutoBackup process

Installation

  1. Extract the downloaded .zip archive
  2. Move the extracted ‘BackupMod’ folder into your ‘Mods’ folder

Compatibility

Required game version: V1.1+

EAC Compatibility

Server only. To load in single-player mode, you must disable EAC.

Ntaklive hope this mod will be useful to someone.

Changelog

v2.3.3 (V1.1)

  • Accounting of elapsed backup time
  • Fixed incorrect reading of save files

v2.3.2 (V1.1)

  • Removed merging of DLLs (because of compatibility issues)

v2.3.1 (V1.1)

  • Remove redundant “server:” prefix in chat messages from the mod

V1
DOWNLOAD for V1 (1,4 MB)
Alpha 21
DOWNLOAD for A21 (1,2 MB)

If you appreciate Ntaklive’s work and you want to show support, use this donate link.

The forum topic of the mod is here.

Credits: Ntaklive

Share this with your friends:
Subscribe
Notify of
guest

If you have any questions or have any problems/bugs, please use the support link (Discord, Forum Topic, GitHub Issues, etc.) in the post. If there is no support link in the post, please use the comments section.

27 Comments
Inline Feedbacks
View all comments
Cossack
Cossack
July 25, 2024 6:31 pm

There is possible to update to 1.0 ? On last versions mod works, but now unfortunetly no 🙁

ntaklive
ntaklive
November 18, 2024 11:56 pm
Reply to  Cossack

Yep, now there is. I’ve updated the mod for the latest version of the game

spook
spook
July 7, 2024 1:33 am

Are you going to update this for v1.0?

ntaklive
ntaklive
November 18, 2024 11:54 pm
Reply to  spook

I’ve updated the mod for the latest version of the game

Walz
Walz
April 9, 2024 9:28 pm

when i back up, it says that i have different md5hash for the world? is this something to be concerned about? i dont how to get rid of it

ntaklive
ntaklive
November 18, 2024 11:53 pm
Reply to  Walz

The mod remembers the md5 hash of the saved world, and if the real world hash and the hash in the backup don’t match, you’ll get an error message. It just tells you that they are different worlds.

JAO
JAO
November 20, 2023 6:27 am

Thank you!!!! I just lost my character when my lights went out. The world got saved, but my characer got reset and I had to give myself back as much stuff as I could remember, but even then I lost some stuff I forgot, and there’s no way I could remember all books I read.
But never again!

Tom Spackman
Tom Spackman
April 14, 2023 12:53 pm

Hi there, I have recently installed your Mod and wanted to test the restoring on my dedicated server. I have installed the mod server side. I cannot see how to do the backup restore on the server when it has to be down for it to work… I cannot do it in my F1 console as it obviously wouldn’t connect to the server when it is down… So how do I use the restore function when running on a dedicated server? 🙂 Thanks!

ntaklive
ntaklive
November 18, 2024 11:47 pm
Reply to  Tom Spackman

Well, that’s something you can’t do. You have to get a zip file of your world and just copy and paste it instead of the old version of the world into the server directory

alex
alex
December 1, 2024 10:02 am
Reply to  ntaklive

Where is the default server directory located for us to paste these files into?

LDS Boden
LDS Boden
November 19, 2022 12:54 pm

also if im playing with a friend and hes on my server will in reload where he was at also?

ntaklive
ntaklive
November 29, 2022 8:13 pm
Reply to  LDS Boden

Yep. Many(?) server administrators use this mod

LDS Boden
LDS Boden
November 19, 2022 12:53 pm

how do you change how often it saves?

ntaklive
ntaklive
November 29, 2022 8:12 pm
Reply to  LDS Boden

Read description. You can change Delay value in AutoBackup section (settings.json in the mod directory)

Joshua
Joshua
October 20, 2022 7:00 pm

Does this need to be server, and client side or just server side?

ntaklive
ntaklive
October 27, 2022 1:25 am
Reply to  Joshua

For server – server-side
For singleplayer – client-side

Montaris
Montaris
September 12, 2022 6:20 am

Awesome Mod! I am seeing the backups running successfully every hour (I set it to every 60 minutes). The one question I have. Do you run these commands from the ingame F1 Console window or can you run these commands from the terminal window as well? I tried in the terminal and it wasn’t recognizing the command?

ntaklive
ntaklive
September 12, 2022 11:39 am
Reply to  Montaris

The commands work fine both in the in-game console and in the server terminal. There are no restrictions on the mod side, but you cannot use the restore command while your world/server is running.
Maybe your server uses EAC anti-cheat, it prevents the loading of .dll mods. Check your serverconfig.xml in the game root directory.

Montaris
Montaris
September 16, 2022 12:02 am
Reply to  ntaklive

ntaklive,

How does the backup restore work? I have tried to use it ingame and in the terminal window and it throws an error? Has to be executed in the Main Menu.

ntaklive
ntaklive
September 16, 2022 11:51 pm
Reply to  Montaris

You can only use this command in the main menu of the game client. It’s not possible to execute some commands from the server console.
So… If you want to use the ‘bp restore’ or ‘bp delete’ command, you may execute the ‘bp list’ or ‘bp restore’/’bp delete’ (without arguments) command, you will see a list of available backups, then just use the required command as described in the console instructions.
https://imgur.com/Bk2purm

Montaris
Montaris
September 18, 2022 7:16 pm
Reply to  ntaklive

Ah, thank you very much. I missed the map and game values in my restore. So, I was typing “backup restore 6” not “backup restore 1 0 6” in the console command. Thank you for all your help 😀

Anon
Anon
August 3, 2022 5:14 am

Very handy in situations when you lose electricity or pc resets/shuts down unexpectedly. Cheers

TheKerevas
TheKerevas
April 30, 2022 4:12 am

Good mod, thanks!

Henshaw
Henshaw
April 23, 2022 3:15 pm

Thank you very much for this. I have been looking for an easy solution for backing up my 7DtD saves, but most either don’t work (or I can’t figure them out), or are very fiddly to get working, and even then are not user friendly. This one just works in the background, which is perfect.

One thing I would request, if you are still working on features, is to have a console command to make a backup at any time, like the current “saveworld” or “sa”. Maybe even somehow link to those particular commands to do the backup when used from the console.

ntaklive
ntaklive
April 23, 2022 9:38 pm
Reply to  Henshaw

Hello. I have added this feature especially for you)
https://github.com/ntaklive/BackupMod/releases/tag/v1.0.3

ntaklive
ntaklive
April 23, 2022 9:52 pm
Reply to  ntaklive

*You can use the ‘backup’ or ‘bp’ command

Henshaw
Henshaw
April 27, 2022 3:22 pm
Reply to  ntaklive

Oh, thank you very much. Really appreciated.