How to restore HA from backup via terminal?

I use HAOS
I can’t do it through the web interface, everything is spinning endlessly and nothing happens, when I reboot the computer with HA, the state is the same as before the attempt to restore.
I have a key installed to encrypt the backup, I only need yaml configs as I understand it is option --folders homeassistant.
I do this

ha backups restore --password YOUR_PASSWORD db725925 --folders homeassistant

in the same way
I get an infinite
Unable to connect to Home Assistant.
Retrying in 45 seconds…

what is wrong ?

PS I don’t mind restoring via the web interface, I just understand that you can try to configure everything more flexibly via the terminal.

UPD I tested the backup after removing encryption and everything works without any problems at all. so the problem is encryption during recovery.

1 Like