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. 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": ""
  },
  
  "AutoBackup": {
    // Is automatic backup enabled
    // Default: true
    "Enabled": true,
    
    // Auto backup delay (seconds)
    // Default: 1200 (20 minutes)
    "Delay": 1200
  },
  
  "Archive": {
    // Keep the last backup of the day
    "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 entering the world
    // Default: true
    "BackupOnWorldLoaded": true
  },
  
  "Utilities": {
    // Chat notifications
    // Default: true
    "ChatNotificationsEnabled": true
  }
}

By default, your backups for each save will be saved in the ‘%AppData%/Roaming/7DaysToDie/Backups/%WorldName%/%SaveName%‘ folder and your archived backups for each save will be saved in the ‘%AppData%/Roaming/7DaysToDie/Archive/%WorldName%/%SaveName%‘ folder.

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

Installation

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

Compatibility

Required game version: Alpha 20

EAC Compatibility

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

Ntaklive hope this mod will be useful to someone.

Changelog

v1.1.4

Recursive creation of folders if the Backups folder or the Archives folder was in the Saves folder has been fixed

v1.1.3

  • Configuration structure was changed
  • ‘Archive’ feature was added (today’s last backup will be stored and won’t be deleted with ‘General.BackupsLimit’) (Look at the new configuration)
  • ‘backup list’ command was added
  • ‘backup delete’ command was added

Note that the structure of the configuration file has been changed. You must replace your old settings.json with the new one and reconfigure it.

v1.1.2

The custom value of the ‘SaveGameFolder’ property now does not break the mod. Thanks to MikeyUK for the help.

v1.1.1

Synchronization of backup and save directories is fixed.

v1.1.0

  • The ‘backup restore’ command was added
  • File location announcement was removed from the chat announcements
  • Much code refactoring

There is great news! Now you can restore your backups directly from the game menu, automatically! Just write ‘backup restore’ in the game console and you will see your available backups.

7 days to die backup mod changelog screenshot

Now write the ‘backup restore *world id* *save id* *backup id*’ command and enjoy. For example: ‘backup restore 0 1 0’.

v1.0.5

  • The backup process is now completely asynchronous (no more freezes)
  • The in-menu configuration hot-reload feature was reworked
  • Now if the configuration is incorrect, you will be given detailed information about the error
  • The ‘backup info’ command was added
  • Some corrections in the announcements

v1.0.4

  • “The world backup is starting” message was added
  • Chat messages logging is removed
  • Redundant in-console announcements were removed
  • Code refactoring

v1.0.3

At Henshaw’s request, there was added a command that performs a forced backup. You can use the ‘backup’ or ‘bp’ command for this.

v1.0.2

  • BackupWatchdog.cs: Fix of the wrong min delay value check
  • ModApi.cs: Exceptions handling for the BackupWatchdog task
  • ConfigurationProvider.cs, ServicesBootstrapper.cs: Configuration hot-reload fix

Download

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 mod with your friends:

5 thoughts on “Backup Mod

  1. 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.

Leave a Reply

Your email address will not be published.