Help: Recovery mode - can I get integrations back without restore from backup?

Was working with trusted networks and apparently had a typo, fell into recovery mode. Fixed it (and then again removed it) and all is back to where it was in the configuration.yaml, but… EVERY INTEGRATION IS GONE.

My backup is a over a month old and massive changes (yes, mea culpa).

But … there was no real corruption or anything bad, just a simple typo.

I see this: https://github.com/home-assistant/core/issues/112787

Which I presume will eventually solve this problem, but in the meantime is there any simple way to recovery the integrations without a full backup restore? Or did it literally erase them/

I’m on 2024.5.5 supervisor 2024.06.2 OS 12.4 in a VM with hassio (at least I think that’s what you call it, the managed version).

I tried going to the backup and pulling off .storage/core.config_entries and then replacing it immediately after booting HAOS, then rebooting, but if I shut down gracefully I think it overwrites it, and if I just turn off the VM and boot it calls that new file corrupt. I suspect there’s more context needed than that one file.

I am in a new house as of a couple months ago, and been making massive changes. Yes, I really should have been backing up but… I just didn’t.

One typo and everything gone? Is there no hope?

Why don’t you just restore the backup? That’s what they are for.

Because I’ve done a massive amount of work over that month, added dozens of new devices, scripts, lots of node red work…

My impression is most of that is still present in the files, but that the top level links to the integrations are gone. I was hoping there is a way to put them back without wiping out that month’s worth of work.

I CAN restore the backup, in fact I did in a snapshot of the system. But a LOT is missing when I do.

Yes, I should have been backing up more frequently. I didn’t. I know that’s foolish.

But I’m hoping someone can tell me if it is possible to save the work.

Linwood

I’ve never needed this since I do nightly backups. I have extracted ESPHome yaml files from the backup tar files, but I don’t know the structure of Home Assistant to know which files are safe to replace.

Are your core integrations or custom integrations missing?

Yes, I get it - backups are good.

ALL integrations are gone except Home Assistant Supervisor and Sun are gone, All. So everything zwave, esphome, BT, MQTT, all entities that came from them. Hundreds and hundreds of entities vanished.

Basically everything gone (my suspicion is actually just unlinked) except what is in configuration.yaml, and I use a yaml based GUI not dashboards, so I have structure there but all of it just shows not found.

So I tried again restoring core.config_entries, I think I pasted it in badly and missed a bracket before. This did get back most integrations (probably all that were there at the time of that backup). Everything I had customized though is gone (for example, dozens of sensors like “laundry_dht_air_temperature” being renamed to “laundry_temp”) reverted to the zwave stored name (zwave is in a different system so its actual device database is still there).

I just don’t understand why Home Assistant would completely wipe everything out when it goes into recovery mode – that had to be a bug (and maybe is being fixed per the link). What I’m hoping is someone who understands HOW recovery mode wipes everything out might know if there’s an automatically saved copy anywhere I can rename/move/copy back in. i have a snapshop of the whole system from when I first noticed this problem (sadly not before), so I can try various recovery techniques.