Recently I had a Dashboard get corrupted. It’s fixed now, but what I’d like to know is what is the best way to fix just the corrupted file? Yes, I know I could restore a full backup, but I had made other changes I didn’t want to loose.
I do have daily backups using Samba Backup as well as uncompressed full file structure monthly backups (less the database files) so I have multiple options for recovery. At first, was tempted to just copy over the /lovelace/dashboard-name file from my backup to .storage/lovelace/ but decided to simply rebuild it. The JSON file was super helpful getting everything back, but I wondered if there was a parser that could have saved me time, by converting the JSON back to YAML.
So, back to my original question; what is the best way to restore just the corrupted dashboard and what steps would one take to achieve this?
Thanks. I hope not to have to do this again, but it would be nice to know what is the correct way if there is a next time.