Backup restore leads to safe mode

I tried to restore a full nightly backup , but HAOS restarts in safe mode.

2023-09-09 14:20:56.142 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: in "/config/configuration.yaml", line 11, column 8: Unable to read file /config/scenes.yaml.. Activating safe mode

2023-09-09 14:21:04.738 ERROR (MainThread) [homeassistant.config_entries] Cannot find integration almond

2023-09-09 14:21:04.743 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2028, in _load_integration

integration = await loader.async_get_integration(hass, domain)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/src/homeassistant/homeassistant/loader.py", line 879, in async_get_integration

raise int_or_exc

homeassistant.loader.IntegrationNotFound: Integration 'almond' not found.

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

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 847, in async_init

flow, result = await task

^^^^^^^^^^

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 865, in _async_init

flow = await self.async_create_flow(handler, context=context, data=data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 967, in async_create_flow

await _load_integration(self.hass, handler_key, self._hass_config)

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2031, in _load_integration

raise data_entry_flow.UnknownHandler from err

homeassistant.data_entry_flow.UnknownHandler

The scenes.yaml file is indeed missing when I go to /config in the terminal. I don’t know why it wouldn’t have been restored.

The backups were made with the Samba backup add-on, FYI, but I restored locally from the backup folder, not from the network drive.