Progress indicator when Restoring from Backup

I get that an actual progress bar would be very hard to code seeing as it might be the database or an addon or whatever and you cannot take into account everything.

A way to give you an update would be to show whats happening in view only console window. Or a simple steps view like 2N does for example (linux based):
image

My restore is running. Found out that if you have a monitor and keyboard attached, you can use the cli to do: jobs info
It gives you running jobs. If you see an empty list, it is not doing anything. If it is busy, you see what jobs it finished and which are running (such as restore addons)

1 Like

I have tried to restore my HA instance several times, since I cannot upgrade from 2024.4.3. However, I have successfully upgraded to OS 12.4.

My backup is 5 GB.

Ryzen 1600X with Virtual Box on Ubuntu 22.04. In Virtual Box, I have set 6 cores and 8 GB RAM (total RAM is 32 GB).

Any help is appreciated.

I did somehow manage to restore my backup of 5 GB. However, it took several hundred of GiB:s flowing to HA. What HA did with all of the GiB:s is unknown to me.

It took several hours for me to get to the screen where I could choose to restore everything or choose what to restore. This time, I choose to restore everything and after that it did not take that long before I had my backup up and running.

Host: Ubuntu 22.04, Virtual Box 7.18. Ryzen 1600X with 32 GB RAM.

I do not know exactly what did it, but now I can restart HA without having to kill VirtualBox. I guess some of these settings did the trick in VirtualBox.

After a couple of hours trying the new HA out, it seems that I have got the same problem. I cannot restart HA without killing the process on my host. I guess it must be something with VirtualBox. All I tried to do was to add InfluxDB, which did not restore correctly and I had to supply it with a database name/password.

Well, now I know a bit more than I did a couple of days ago. I will try KVM instead.

I’m not sure you will get many answers in this section as it’s for feature requests rather than technical assistance. Maybe @moderators can move it for you ?

2 Likes

Not really the indicated feature but a way you can know if the restore process is alive, is by opening up the browser console and heading to the network tag, the backup process seem to ping the browser every certain amount of seconds, not perfect but at least it does let you know something is happening.

I totally agree on this.

I need to restore a 3g backup file on a 4core i7 but I have no idea if its actually doing it or not - i just get a spinning wheel

Truly dont want to brick my machine by rebooting it. The Observer is still up and running.

The Observer would be the best solution for it I agree

Having UI output and/or a log of the restore process could also enable optimizing the whole process. I can’t help but think why restoring a 800MB backup on a pi4 should take multiple hours.

This helped me massively!
I was restoring a 1.5GB backup file to my new mini PC, after ±30 minutes I was wondering if something was still being done or not. I accessed the IP in another tab, that showed me the default onboarding page again, at that point I wasn’t sure if this should show the ‘restore in progress’ or this page.

I ran the jobs info command and that showed me an error message: Supervisor version incompatible… seems the UI doesn’t reflect that error for some reason.

1 Like

I’m trying a full restore on my Pi from a ssh shell
[core-ssh backup]$ ha bk restore 5cecad5b
It kicked me out of my connection, can’t ssh back in, and the regular web interface asks me if I want to Create My Smart Home.
Observer looks like this:

So - is this expected behavior during restore? I wholeheartedly agree it’s less than ideal, but does this mean working, or broken, or simply no way to tell?

I guess at this point I’d be tempted to go through initial setup and try and restore from the GUI. You can query HA via the shell on the PI itself (assuming you have a monitor and KB) to see if anything is going on but maybe not in your case :confused:

I dunno, feels like this needs some love - people act like restore doesn’t take forever sometimes (it does) and never fails (it does) and a reliable backup is essential for a critical system. Similarly we’re told HAOS will never fail to boot (it does) etc. TBH the only viable option for me is proxmox and snapshots - image based backup that works and has progress and solves both cases.

I’d recommend:

  • periodic backups in HA
  • GoogleDrive addon to move those offsite
  • proxmox as a HV with automated off-device snapshots

My worse case downtime in failure is something like 5 mins.

I’m busy with a restore to a new Home Assistant Yellow and it’s taking long but not sure if it’s failed or not.

If I reload the page it takes me back to the onboarding page again which allows me to upload the backup file again? That seems weird, I would think it would prevent me from doing that if it was already busy with a restore.

Okay, I have no idea what happened. The first attempt must have failed, I waited about an hour and then decided to restart it. I then did the restore again and it was successful in less than 10 minutes (900MB restore file).

Tip: if you are restoring and you load up the page again, it shouldn’t show you the onboarding page. Pretty sure that means it failed.