Following a double power outage this morning, my production environment is seriously injured. I am running a RPi3 with system and files on an SSD. Due to life (a k a newborn son) I have been absent a bit too long to find my way around Debian and OpenHAB with any ease, but I note that I have zero items or things present in PaperUI. Sitemaps, item-files etc seem to be present. My guess is that the outage corrupted the PaperUI database (Jetty?) and since I use that for defining things, the items have nothing left to connect to.
While I do back configurations nightly, I’m not running any image backup regularly. The last one I have seem to be pre-move-to-SSD (Dec 19). Not sure what I will lose by going back, but that might end up being my only way forward. My questions then are these;
- Is there any reasonable way to a) verify that db corruption is my issue and b) if so, attempt any kind of repair? (I am suspecting that “nope - be smart before the disaster, stupid” is the answer here, hrmpf)
- Am I correct that only a full image backup normally backs up PaperUI’s db? E.g. its not part of the “common” backup scripts in the docs=
- Does anyone know of any challenges with restoring a SSD transitioned RPi3 to once again run from the MicroSD? Is there anything special I should be thinking about?
Also, let’s not think too much about the fact that my experimental, and currently very broken, development system is happily backing up to AWS every night.