Home Assistant restore from Command Line Interface (CLI) documentation?

I really screwed up Home Assistant today trying to install the SSL certs so that I can access HAOS from TailScale but that’s not the point of my TED talk.
I could not login at all my only access was the command line. I had to restart in safemode to keep the errors from taking over the screen when I was trying to type in commands.
Here’s where I ran into some trouble. There appears to be a way to do a backup restore from the HA menu, but it really sucks and it changed syntax recently according to some posts is found. I couldn’t restore a partial automatic backup and you have to add a bunch of flags to do a simple restore including one for the password which it didn’t accept because maybe it’s looking for the encryption key instead of the password?
The problem is the only documentation I could find was outdated. Someone who worked on the latest version of backup and restore should write up a document on how to do it from the command line if it doesn’t exist already.
After bashing my head against the wall for more than an hour chasing leads I punted and reinstalled HAOS and I hope that Last nights Autobackup works.

Here are some articles that “helped” but not enough

ha backups --help

Thanks Tom, yeah those are a list of possible commands not an actual list of steps on how to recover from a catastrophic incident.

Also to be pedantically accurate it would be
ha > backups restore --help
which gives you a less than useful

Usage:
ha backups restore [slug] [flags] 

Whats a slug and which flags should I use? it lists as examples --app core_ssh, --app core_mosquitto , --folders homeassistant .
and after I tried all of those things it complained that it was a partial restore.
Also to reiterate you have to give it a password and it didn’t like my user password, so whats that about.
I’m not qualified to make a tutorial since I failed miserably, I’m just saying someone who knows how it is supposed to work should probably make a list of steps. Either that or some YouTuber could tell me what to do after 3 minutes of like and subscribe nonsense.

You would not know that without doing my help command first.

To be pedantically accurate it would be:

ha --help

Then drill down the commands for further help but I figured you would know how to do that.

The backup id. use the backups info command get this.

The ones that you need to do what you want. They are all listed in the help response.

1 Like

Try putting this into a search engine for more detailed help. (Yes, it’s the title of your post):

site:www.home-assistant.io Home Assistant restore from Command Line Interface (CLI) documentation?