Nexus-Mods / Nexus-Mod-Manager

GNU General Public License v2.0
982 stars 165 forks source link

Feature request: NMM to automatically backup its essential working files, eg.'VirtualModConfig.xml' #1091

Open karmacat77 opened 3 years ago

karmacat77 commented 3 years ago

Background:

I had a Windows crash while NMM was uninstalling a mod. On restart, NMM took me through the 'New Version Setup' process. I chose 'reinstall', it uninstalled all mods, but then had an exception error and crashed. I found that 'VirtualModConfig.xml' had been corrupted, presumably from the Windows crash. There were no backups of it, and all my mods were now uninstalled, so I lost a lot of work.

Feature request:

It would be very helpful if NMM automatically created backups of its essential working files. NMM already creates backups of '...\Install Info\InstallLog.xml' but I believe that's the only one. The backups could be limited to .xml files which are frequently updated when modding and affect a user's entire install/profile, eg:

'...\Virtual Install\VirtualModConfig.xml' '...\Mods\ModProfiles\ProfileManagerCfg.xml' '...\Mods\Categories\Categories.xml' '...\Mods\ReadMe\ReadMeManager.xml' '...\Mods\ModProfiles\xxxx\modlist.xml' '...\Mods\ModProfiles\xxxx\profile.xml'

This feature would be separate from NMM's manual 'Backup and Restore' functionality, which performs a much more complex task.

DuskDweller commented 3 years ago

Good catch, I'll try to add is this to the upcoming release.