Snapshot restore not working PI3 to PI4

Hi guys,

Migrating my setup to new PI4, flashed new SD card, installed Hassio and Samba share, copied my last snapshot and trying to restore full configuration.
After I click wipe and restore it is doing something for few minutes, then I lose connectivity and after it is restored it goes back to freshly installed hassio - no previous configuration, no automations, no scripts, etc. Tried multiple times but no results - just not restoring the snapshot.
However all addons - duckdns, ssh, etc. are restored and configured.

Tried reflashing and restoring multiple times, but stuck and not really sure what to do now.

Any ideas?

You sure it’s a full snapshot? If it is and it’s still not restoring, navigate to here in the archive:

. > homeassistant.tar.gz > .

Then once you’re there you’ll see everything that was in your config directory. Copy those files over manually.

Isn’t it enough to “restore” and not “wipe and restore”?
See docs: https://gist.github.com/cogneato/24d5a1a0daddec9d048048201170df8b

It’s interesting - home assistant says it’s a full snapshot, however inside the archive most of my files do not exist so it’s clear why it is not restoring - looks like snapshot is corrupted (the same with one snapshot before), but previous snapshots have all the files.

Don’t know why home assistant stopped snapshotting configuration files, will try copying configs manually.

disk full?
try thiis

boot the old image
ssh to the rpi
run a
df -h|grep dev

The problem here is that mi PI3 died, so I cannot boot it to make another snapshot. All configs are saved but for some reason they are missing from the snapshot. Not sure if copying configs to the snapshot can help, trying that right now. Could be just easier to overwrite fresh install with my saved old yaml files. Trying that now

Yeah, you could just restore what you can from the snapshot and then manually copy over everything in your config folder. I wouldn’t try adding files to the snapshot archive.

Some backup’s are not complete. In my experience, first with PI3 and a PC/NUC, temporary database files cause backup to fail, sometimes. On a NUC, which is MUCH faster, this does not happen nearly as often. Reported on GitHub at least 6 months ago.

So I added all my config files into the snapshot archive. Also had to modify snapshot.json file in the root snapshot folder - added extra line “homeassistant” so when restoring snapshot it restores the configuration (as well as addons,shares,etc)

Aside from “restore from the snapshot failure” - I found that not only my PI3 died but SD card as well, I will open another topic about that.

Ah interesting.