HA Backup lässt sich nicht einspielen

Hallo zusammen,

ich bin aktuell leider ein bisschen verzweifelt. Vor knapp zehn Tagen funktionierte HA morgens auf einmal nicht mehr, obwohl ich über ein Jahr lang keine Probleme hatte. Ich habe alle Updates durchgeführt und war super zufrieden. Vor ein paar Monaten bin ich auf Proxmox umgestiegen und virtualisiere HA „nur“ noch. Das klappte grundsätzlich auch super. Bis vor ein paar Tagen. Ich habe erst versucht, die Installation wieder zum Laufen zu bringen, aber ohne Erfolg. Da ich ein regelmäßiges Backup über die NabuCasa-Cloud gemacht habe, dachte ich: „Kein Problem, HA frisch aufsetzen und Backup einspielen.” Leider funktioniert das aber überhaupt nicht. Ich habe schon verschiedene Ansätze versucht.

  • Backup einspielen direkt vor dem Anlegen des lokalen Benutzers.
  • Erst den Nutzer anlegen und dann das Backup einspielen.
  • Nur Teile des Backups einspielen (Grundeinstellungen).

Nichts hat geholfen. Ich bekomme immer nur die Meldung, dass es nicht funktioniert hat.

Habt ihr ein paar Ansatzpunkte für mich, die ich noch versuchen kann? Wie und wo kann ich Logs auslesen, um vielleicht mehr Informationen zu erhalten? Muss der lokale neue Nutzer identisch zu dem Nutzer im Backup sein? Kann ich die Backup-ZIP vielleicht auch so weit einpacken, um zumindest Teilbereiche wie „Helfer” und die selbst angelegten YAML-Dateien zu erhalten, um es doch neu auszusetzen, aber nicht bei 0 anzufangen?

Ich würde mich sehr über Hilfe freuen.

Viele Grüße

Josef

Du kannst das Backup entpacken und den bestehenden Inhalt von /config inklusive aller Order und Dateien auch die verstecken Ordner und Dateien löschen und dann den Inhalt aus dem Backup rein kopieren.
Home Assistant neu starten und Daumen drücken. :grin:

Somit hast Du die Home Assistant Konfiguration wiederhergestellt.

Da Du Proxmox am Start hast, machst Du über Proxmox keine regelmäßigen Backups?

Gruß Osorkon

danke dir für den Tipp … leider kann ich das Archiv “.tar.gz“ nicht entdecken. Bekomme sowohl über das Terminal als auch über den Finder ne Fehlermeldung. “tar: Error opening archive: Unrecognized archive format“

Proxmox Backup habe ich nicht gemacht, nein. Dachte mir die Application direkt zu sichern ist einfacher und besser da nicht noch ein zusätzliches System dazwischen ist bei dem Version und Einstellungen passen müssen um das Backup einzuspielen. Vielleicht ein Fehlern :wink:

Ich benutze lieber die Proxmox Backups als die HA eigenen da die um einiges schneller eingespielt sind.
Mache aber trotzdem auch mit HA Backups, zu viele Backups gibt es nicht, zu wenig schon.

Von wo hast du die Datei heruntergeladen, direkt von Nabu Casa?
Nochmal neu Downloaden, vielleicht ist da ein Fehler in der Datei.


LG

Ich habe noch mal einige Dinge versuche aber alles ohne Erfolg. Aus den Supervision Logs habe ich das hier rauskopiert. Das Backup File kann ich leider auch nicht einzeln entpacken … langsam bekomme ich ein bisschen Sorge, dass ich alles neu machen darf.
Hat noch jemand ne gute Idee?

2025-12-18 10:31:29.974 ERROR (SyncWorker_7) [supervisor.homeassistant.module] Can't read tarfile <securetar.SecureTarFile object at 0x7fd1339f57f0>: invalid compressed data
2025-12-18 10:31:29.982 ERROR (MainThread) [supervisor.backups.manager] Restore 32b6009d error
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/tarfile.py", line 549, in _read
    buf = self.cmp.decompress(buf)
igzip_lib.IsalError: Error -1 Invalid deflate block found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 488, in _restore_home_assistant
    with tar_file as backup:
         ^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/securetar/__init__.py", line 190, in __enter__
    return self.open()
           ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/securetar/__init__.py", line 220, in open
    self._tar = tarfile.open(
                ~~~~~~~~~~~~^
        fileobj=self,
        ^^^^^^^^^^^^^
    ...<2 lines>...
        bufsize=self._bufsize,
        ^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/tarfile.py", line 1912, in open
    t = cls(name, filemode, stream, **kwargs)
  File "/usr/local/lib/python3.13/tarfile.py", line 1788, in __init__
    self.firstmember = self.next()
                       ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/tarfile.py", line 2801, in next
    raise e
  File "/usr/local/lib/python3.13/tarfile.py", line 2774, in next
    tarinfo = self.tarinfo.fromtarfile(self)
  File "/usr/local/lib/python3.13/tarfile.py", line 1335, in fromtarfile
    buf = tarfile.fileobj.read(BLOCKSIZE)
  File "/usr/local/lib/python3.13/tarfile.py", line 527, in read
    buf = self._read(size)
  File "/usr/local/lib/python3.13/tarfile.py", line 551, in _read
    raise ReadError("invalid compressed data") from e
tarfile.ReadError: invalid compressed data
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/backups/manager.py", line 736, in _do_restore
    task_hass = await backup.restore_homeassistant()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 307, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 299, in wrapper
    return await method(obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/backups/backup.py", line 890, in restore_homeassistant
    await self.sys_homeassistant.restore(
        homeassistant_file, self.homeassistant_exclude_database
    )
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 307, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 299, in wrapper
    return await method(obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 539, in restore
    data = await self.sys_run_in_executor(_restore_home_assistant)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 495, in _restore_home_assistant
    raise HomeAssistantError(
        f"Can't read tarfile {tar_file}: {err}", _LOGGER.error
    ) from err
supervisor.exceptions.HomeAssistantError: Can't read tarfile <securetar.SecureTarFile object at 0x7fd1339f57f0>: invalid compressed data
2025-12-18 10:31:29.985 INFO (MainThread) [supervisor.backups.manager] Restore 32b6009d starting stage await_home_assistant_restart
2025-12-18 10:31:30.065 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
2025-12-18 10:31:31.010 INFO (MainThread) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/qemux86-64-homeassistant with version 2025.12.3
2025-12-18 10:31:31.010 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-12-18 10:31:59.706 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state freeze
2025-12-18 10:31:59.706 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-12-18 10:32:01.058 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='NOT_RUNNING', offline_db_migration=False)
2025-12-18 10:32:11.083 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='RUNNING', offline_db_migration=False)
2025-12-18 10:32:11.084 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
2025-12-18 10:32:11.086 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-311714' coro=<BackupManager.do_restore_partial() done, defined at /usr/src/supervisor/supervisor/jobs/decorator.py:245> exception=BackupError('Restore 32b6009d error, see supervisor logs')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/tarfile.py", line 549, in _read
    buf = self.cmp.decompress(buf)
igzip_lib.IsalError: Error -1 Invalid deflate block found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 488, in _restore_home_assistant
    with tar_file as backup:
         ^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/securetar/__init__.py", line 190, in __enter__
    return self.open()
           ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/securetar/__init__.py", line 220, in open
    self._tar = tarfile.open(
                ~~~~~~~~~~~~^
        fileobj=self,
        ^^^^^^^^^^^^^
    ...<2 lines>...
        bufsize=self._bufsize,
        ^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/tarfile.py", line 1912, in open
    t = cls(name, filemode, stream, **kwargs)
  File "/usr/local/lib/python3.13/tarfile.py", line 1788, in __init__
    self.firstmember = self.next()
                       ~~~~~~~~~^^
  File "/usr/local/lib/python3.13/tarfile.py", line 2801, in next
    raise e
  File "/usr/local/lib/python3.13/tarfile.py", line 2774, in next
    tarinfo = self.tarinfo.fromtarfile(self)
  File "/usr/local/lib/python3.13/tarfile.py", line 1335, in fromtarfile
    buf = tarfile.fileobj.read(BLOCKSIZE)
  File "/usr/local/lib/python3.13/tarfile.py", line 527, in read
    buf = self._read(size)
  File "/usr/local/lib/python3.13/tarfile.py", line 551, in _read
    raise ReadError("invalid compressed data") from e
tarfile.ReadError: invalid compressed data
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/backups/manager.py", line 736, in _do_restore
    task_hass = await backup.restore_homeassistant()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 307, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 299, in wrapper
    return await method(obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/backups/backup.py", line 890, in restore_homeassistant
    await self.sys_homeassistant.restore(
        homeassistant_file, self.homeassistant_exclude_database
    )
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 307, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 299, in wrapper
    return await method(obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 539, in restore
    data = await self.sys_run_in_executor(_restore_home_assistant)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/homeassistant/module.py", line 495, in _restore_home_assistant
    raise HomeAssistantError(
        f"Can't read tarfile {tar_file}: {err}", _LOGGER.error
    ) from err
supervisor.exceptions.HomeAssistantError: Can't read tarfile <securetar.SecureTarFile object at 0x7fd1339f57f0>: invalid compressed data
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 307, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 299, in wrapper
    return await method(obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/backups/manager.py", line 937, in do_restore_partial
    success = await self._do_restore(
              ^^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/src/supervisor/supervisor/backups/manager.py", line 761, in _do_restore
    raise BackupError(
        f"Restore {backup.slug} error, see supervisor logs"
    ) from err
supervisor.exceptions.BackupError: Restore 32b6009d error, see supervisor logs
 Live