You should just be able to create a full snapshot, move the snapshot off of the Pi using Samba or similar, reflash the new 64-bit image, restore the snapshot, use datactl to move the datactl to migrate the data to the USB drive. The fact that your data is currently migrated to a USB drive shouldn’t have anything to do with it - the snapshot will backup what’s necessary.
You mean, that the full snapshot will contain a full backup of all data?
A full backup of my homeassistant is 280 MB. The home-assistant_v2.db is 760 MB, so I assume it is not backed up at all…
Should I also make a copy of my config/ folder?
Is it safe to just copy everything from the config/ folder or is there something I should skip?
I really want to try all this and after this, creating a guide for others. Where would be an appropriate repository to do so?
The snapshot should contain everything, including /config, and it’s compressed, so the size of the final tarball won’t reflect the contents. You can open the snapshot in a tool of your choice, as it’s just a tar file with a bunch of compressed tarfiles in it. homeassistant.tar.gz in the larger tar file is your /config directory.
So to clarify, you guys say you CAN migrate from 32bit to 64bit HA, by restoring a snapshot to the new 64bit build that was created on a 32bit build, including a the full wipe & restore option, and end up with 64bit HA running your old add-ons and config etc ?
Edit: No matter, yes it seems to work (the restore from 32bit), although I found no way to actually verify if HassOS was now running 64bit or 32bit.
But then I found that ESPhome won’t compile code without locking up the RPi (tried twice), so reflashed with Etcher back to 32bit. FIH. Yes ESPhome has such a warning, but I tried anyway.
OK I seem to have success with both 64bit AND now back to 32bit (on USB SSD drive).
Sadly I discovered that ESPhome still wont compile under 64bit OS (tried twice), and that’s a deal breaker for me and my 12 odd ESPhome devices…
I hate necromancy as much as the next guy, but does anyone know if this has been fixed yet? I’d like to upgrade to a pi4 8GB (so 64 bit) but if ESPhome can’t compile then it’ll be a dealbreaker for me too.
I had a quick look for any issues referencing this but came up empty.
Just to report my findings. I did a snapshot restore from 32bit to 64bit without issues, very smooth. I feel the 64bit was running faster on my pi4, might be placebo effect
Adding to the positive feedback: I migrated from a Pi3B+ to a Pi4 (Argon 1 Case with SSD) and decided to switch from 32bit to 64bit. I did a full snapshot on the old 3. Restored everything on the new 4 including the Add-Ons. Put the CC2531 Zigbee stick in the new Pi, assigned the same IP address and bam, everything migrated and working. I was honestly surprised!
I only have had two minor issues so far. I realized you have to use a USB extension cable with the CC2531 as there apparently seems to be some intereference with the SSD. Solved that.
However another issue remains with my log/history graphs. They don’t seem to be updating ever since the migration. The Zigbee sensors are pushing correct values ever so often. Anybody have an idea of what the problem might be? Will a deletion of my .db resolve this?
[Edit]: So I bit the bullet and decided to start with a fresh database file. Wasn’t too troubled about loosing the history. Everything works fine now; graphs are updating as they should.