Skip corrupt registry files in backups (#5789)

This commit is contained in:
Mike Degatano 2025-03-27 05:32:28 -04:00 committed by GitHub
parent 81fc15d6ac
commit 8b3bf547d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ HOMEASSISTANT_BACKUP_EXCLUDE = [
"*.corrupt.*",
"*.log.*",
"*.log",
".storage/*.corrupt.*",
"OZW_Log.txt",
"backups/*.tar",
"tmp_backups/*.tar",

View File

@ -144,6 +144,12 @@ async def test_end_backup_ws_error(coresys: CoreSys, caplog: pytest.LogCaptureFi
("test.cpython-312.pyc", False, True, "subfolder/__pycache__"),
(".DS_Store", False, True, None),
(".DS_Store", False, True, "subfolder"),
(
"core.restore_state.corrupt.2025-03-26T20:55:45.635297+00:00",
False,
True,
".storage",
),
],
)
@pytest.mark.usefixtures("tmp_supervisor_data")