I am building an automated installation of Home Assistant - with Supervisor
Most of the installation works just fine - but I am having issues restoring a backup during the process.
I am running the installer.sh which installs Home Assistant just fine.
First issue is that the installer.sh returns to my script before Home Assistant internal install is completed.
I handled this by checking “ha core check” and waiting for it to return “Command completed successfully.”
Now I copy my backup to the backups folder and run
ha backups reload
ha backups restore MYBACKUPNAME
This returns “Command completed successfully.”
Here comes the issue - the backup is not restored at all.
If I run the command manually (or restore from the UI) it works fine.
My guess is that Home Assistant is not ready for the restore just yet and I therefore need a better way to detect if the installation is complete than “ha core check”
Strange. That is more or less how I install a new installation of Supervised : copy the contents of /usr/share/hassio over to a new vm, and then run the installer. An untar should be the same.
long story short: i want to shutdown my haos machine for certain time of a day. in that times a rpi should take over haos tasks. therefore i need a routine that restores a daily backup automatically to the rpi. maybe you can share your install script and i can make use of couple routines from it?!