So far so good: I can reach Home Assistant on port 8123 and Portainer on port 9000. Now I would like to transfer the configuration from Pi to NUC. Two questions:
How can I use Portainer to create a ‘backup’ of the current Hassio-installation, so I can roll back if something gets messed up?
HA on Pi is running at v0.79.3. Can I just import a snapshot of 0.79.3 in the current version 0.84.6 on the NUC?
Your config files reside outside of the actual running container. You are supposed to be able to blow away a container and stand it back up without data loss because your data resides in a specified volume or bind mount. There is zero reason to “back up a container”
Yes you can copy the config directory over but watch out for things like the new owntracks syntax and any other breaking changes since then.
It is my understanding I could copy over a full snapshot including config and all add-ons. Not just the config folder. But my question is: will importing a snapshot of a prior HA version (0.79.3) cause any issues when I import it into HA 0.84.6 ? Besides the fact that I will need to change the configuration for breaking changes.
And as a separate question: is there a way I would be able to roll back to a previous state, app including data (config)? Or is this something I should not expect from Docker/Portainer, should I run a VM environment for this? I would like to learn about this, also because a way to roll back sounds great in case I don’t have enough time to apply all breaking changes to my configuration in one run after updating.
If I understand correctly: by using that command I will roll back Hassio to a previous HA version. After which I should import a Hassio snapshot of the same version to restore my configuration. Is this correct?
If you have a snapshot from a previous version, just use it.
If you don’t have a snapshot of a previous version, use the method of installing a specific version.
You don’t need to restore your configs to a previous version.
The only thing that can get touched during an upgrade is the database if you’re using sqlite3 (the default). If the database breaks you just delete the .db file and let the system generate a new one. You only lose history