I’ve just lost months worth of setup and tweaks of home assistant config. Not sure of the root cause at the moment, but I just wanted to remind everyone of the time they spend setting all this up and the seconds it takes to copy it to a different machine (at the minimum). There are guides to backup to github, Dropbox, and USB already on the home assistant site. Follow them! I will do on my fresh install.
Below is a rant/pondering that nobody has to read, but if you have any ideas how to prevent the same thing again then feel free to chime in.
The USB that was booting my Pi for some reason stopped booting (stuck at either the rainbow screen, or the 4 raspberry screen). Dont know why. The files all seemed present. I tried replacing all the boot partition with a newer version, but still it wouldn’t boot. I then booted an ubuntu live USB and copied all my home directory from the raspbian partition to what I thought was the live ubuntu USB storage. Installed fresh raspbian on the USB stick and now it works. I went to restore all my configs and lo-and-behold the live USB contains nothing that I put there. I guess I didn’t think about persistence and just assumed I could copy files across. There was no read-only warning. Lesson learned I suppose. So I don’t know when I’m going to get round to redoing all my config and automations, fortunately some of them were posted on here. I think firstly I’ll set up a backup cron to backup to my other server.