Error when I try to restore a backup

Hello. I reinstalled Home Assitant, but when I try to restore my backup I’m always having this error in the cmd:

INFO:homeassistant.backup_restore:Restoring C:\Program Files\HassWP\config\backups\f93a062d.tar
WARNING:securetar:Found issue with file backup.json
WARNING:securetar:Found issue with file homeassistant.tar.gz
Traceback (most recent call last):
File “C:\Program Files\HassWP\python\Lib\site-packages\homeassistant\backup_restore.py”, line 175, in restore_backup
_extract_backup(
~~~~~~~~~~~~~~~^
config_dir=config_dir,
^^^^^^^^^^^^^^^^^^^^^^
restore_content=restore_content,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “C:\Program Files\HassWP\python\Lib\site-packages\homeassistant\backup_restore.py”, line 107, in _extract_backup
backup_meta = json.loads(backup_meta_file.read_text(encoding=“utf8”))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File “C:\Program Files\HassWP\python\Lib\pathlib_local.py”, line 546, in read_text
return PathBase.read_text(self, encoding, errors, newline)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\HassWP\python\Lib\pathlib_abc.py”, line 632, in read_text
with self.open(mode=‘r’, encoding=encoding, errors=errors, newline=newline) as f:
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\HassWP\python\Lib\pathlib_local.py”, line 537, in open
return io.open(self, mode, buffering, encoding, errors, newline)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘C:\Users\jonas\AppData\Local\Temp\tmpg3ipqrpp\extracted\backup.json’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “C:\Program Files\HassWP\python\Lib\site-packages\hass_win_main_.py”, line 144, in
sys.exit(main.main())
~~~~~~~~~~~~~^^
File “C:\Program Files\HassWP\python\Lib\site-packages\homeassistant_main_.py”, line 186, in main
if restore_backup(config_dir):
~~~~~~~~~~~~~~^^^^^^^^^^^^
File “C:\Program Files\HassWP\python\Lib\site-packages\homeassistant\backup_restore.py”, line 180, in restore_backup
raise ValueError(f"Backup file {backup_file_path} does not exist") from err
ValueError: Backup file C:\Program Files\HassWP\config\backups\f93a062d.tar does not exist

How did you make the backup?
How did you start the restore?

Personally, I don’t trust the new backup/restore in 2025.2
I have used Samba Backup add-on to backup to an NAS for years and it has never let me down. (Note, however, I haven’t needed to do a restore for more than a year).

Others use Google Backup add-on.

If you installed Home Assistant ina VM or container, you can just copy that.

As this is not a supported Home Assistant installation, you better ask support on the authors github:

I also experience a problem when trying to restore a backup (.tar) that i downloaded from the nabu casa cloud. My SD card went, so i installed a new sd card and logged on to raspberry pi, then i had 2 options, create new account or restore from backup. i select restore from backup go to the file select if it is full or partial (i want full) but at the bottom of that page there is a field for a encryption key(not sure where to get this key). When i hit restore i get message in red “Failed to start restore. Unknown error”

Is there any advise for me please.

Create new user, then download backup again and restore from settings → system → backup

1 Like

It worked! Thank you very much. I was scared that if i create a new account i wont be able to restore backups from another account, but hey it worked! Thanks