Skip to content

Commit 8b3bf54

Browse files
authored
Skip corrupt registry files in backups (#5789)
1 parent 81fc15d commit 8b3bf54

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

supervisor/homeassistant/module.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"*.corrupt.*",
6868
"*.log.*",
6969
"*.log",
70+
".storage/*.corrupt.*",
7071
"OZW_Log.txt",
7172
"backups/*.tar",
7273
"tmp_backups/*.tar",

tests/homeassistant/test_module.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ async def test_end_backup_ws_error(coresys: CoreSys, caplog: pytest.LogCaptureFi
144144
("test.cpython-312.pyc", False, True, "subfolder/__pycache__"),
145145
(".DS_Store", False, True, None),
146146
(".DS_Store", False, True, "subfolder"),
147+
(
148+
"core.restore_state.corrupt.2025-03-26T20:55:45.635297+00:00",
149+
False,
150+
True,
151+
".storage",
152+
),
147153
],
148154
)
149155
@pytest.mark.usefixtures("tmp_supervisor_data")

0 commit comments

Comments
 (0)