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
- Extract the downloaded .zip archive
- 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
v2.2.0
Alpha 21 support added.
v2.1.3
Fixed the inability to restore the current world after disconnecting.
DOWNLOAD for A21 (1,2 MB)
DOWNLOAD for A20 (1,7 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
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.
There is possible to update to 1.0 ? On last versions mod works, but now unfortunetly no 🙁
Are you going to update this for v1.0?
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
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!
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!
also if im playing with a friend and hes on my server will in reload where he was at also?
Yep. Many(?) server administrators use this mod
how do you change how often it saves?
Read description. You can change Delay value in AutoBackup section (settings.json in the mod directory)
Does this need to be server, and client side or just server side?
For server – server-side
For singleplayer – client-side
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?
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.
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.
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
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 😀
Very handy in situations when you lose electricity or pc resets/shuts down unexpectedly. Cheers
Good mod, thanks!
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.
Hello. I have added this feature especially for you)
https://github.com/ntaklive/BackupMod/releases/tag/v1.0.3
*You can use the ‘backup’ or ‘bp’ command
Oh, thank you very much. Really appreciated.