Recovering Hassio From Snapshot

Hey,

Does anyone know how to get snapshots of a dead instance of Hassio?

Or if I reinstall will it keep the existing files and only update the boot partition or something?

Any help would be awesome.

Regards,

Leigh.

Hi,

You should have the SSH addon installed in order to access it via for ex. Putty.
After, you’ll need the slug (a kind of a name) of the snapshot. To get this, type in the CLI:
hassio sn list (this will bring up the list of available snapshots and there you will see the “slug”)
To restore the desired snapshot, type in the CLI:
hassio sn restore --name slug name here

Hope this helps

1 Like

It is my understanding that if you rebuild Hassio on the card the files will be gone as the system does a complete write of the file system. I would suggest following @SergiuMeinic suggestions before you re-image the card!

I am using the Dropbox addon to back up a daily snapshot to Dropbox in case the machine turns into a zombie! I also have Samba running and manually pull a copy from time to time. I also have an automated ftp process that pulls the whole config directory to a NAS once each day!

As you can tell, I have been bitten a time or 2.

@SergiuMelnic It a bit deader than just using SSH, was maybe looking for a way to get the snap from disk then restore as you suggested?

@mattlward Once back up I’ll be doing something similar with PowerShell that’s for sure. I moved to an NUC to get away from crappy SD cards but ended up with less Hassio support for the hardware (NUC’s seem to be flakey with the Supervision and Host OS updates)

Current issue if anyone is interested: