Backup on a rpi4b 64 docker with HACS restore on rpi4b with hass os

Is it possible to use the backup restore for conversion from

a) RPI 4b with rasbian os 64 and 64 hass docker for rpi TO
b) RPI 4b with hass os

I did not succeed…(me)

What i did:

  • source: made a backup in the nabu cloud from my production rpi4b with docker and home assistant with several HACS integrations
  • target: installed an extra (spare) rpi4b with homeassistant os image
  • target: connect the device to the same nabu account as the source
  • target: selected (click) on the new backup for restore
    then i get unknown error
  • target: try to download the backup from the cloud
    then i get Site is not available in the browser
  • source: i downloaded the bck file from the source to my pc
  • target: uploaded the bck file to the target
  • target: clicked on the uploaded bck file to recover, entered the key,
  • target: it shows: restoring for 2 seconds (strange is a large file 350mb)
  • target: it shows: restarting: waited 30 minutes, no screen, so rebooted
  • target: old situation shows

Is this scenario anyway a possibility and if not, what is the easiest way to convert from my source with docker to target with hass os ?

It will fail since the addons will be missing the associated docker container for the integration to work

There is a way to do this but it will be unique for your install and take a little time

EXAMPLE
A camera in HAOS and docker are same. This will be restored without issue

Zwavejsui requires seperate service to work. This service is installed using a docker container. In docker this container is manually created. In HAOS it is an addon that is automatically created. The configs for these are similar but docker will not have this in backup for HAOS to use when it creates the addon. You will need to setup the addon for first use

For this reason, you can restore the backup and use many of the files but it will not “just work”

pff, thats will be a lot of work!
In my thirst restore trials nothing happened after restoring, so now i start with:

  • install all integrations manually like solar, p1 etc.

  • devices: 90% (like 100) of my devices are in an external zigbee2mqtt docker, and they stay there, just for this reason, they come automatic when i connect to mqtt

  • copy floor and areas

  • copy automations, script, (bin) sensor, scenes and templates yaml etc.

  • my dashboards via yaml cut and paste

Last thing thats takes work are

  • the helpers, like group, numeric boolean and schema

Can i copy these too from a file?

  • i use a hacs addon for schedules with lots of schedules,
    i have to look how to import these after installing the addon manually

You should be able to copy over HACS

It’s only the addons that I believe would make it weird. Specifically, anything that requires a separate docker container to run.

another question,

When i do a hass backup of my original hass docker version and import this tar file in
the new hassio version, does this import includes

  • the database
  • the www folder
  • the storage folder ?

Last time i tried to backup and retrieve nothing happens…

Now i have first installed ALL the addons, hacs addons on the new system and do another trial of backup and restore.
when the restore adapts something from the original backup i will add and overwrite the special dockers like you said…

another option is to copy the complete original hass folder over the hassio folder…
problem is that the database is still active during copy.
Option to close hassio kills my winscp and then i cant copy…

For HA in docker the backup is a zip file of the config folder.

Not sure about HAOS. I’m sure it is similar