mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Ignore dangling symlinks when restoring backup (#136893)
This commit is contained in:
@@ -146,6 +146,7 @@ def _extract_backup(
|
|||||||
config_dir,
|
config_dir,
|
||||||
dirs_exist_ok=True,
|
dirs_exist_ok=True,
|
||||||
ignore=shutil.ignore_patterns(*(keep)),
|
ignore=shutil.ignore_patterns(*(keep)),
|
||||||
|
ignore_dangling_symlinks=True,
|
||||||
)
|
)
|
||||||
elif restore_content.restore_database:
|
elif restore_content.restore_database:
|
||||||
for entry in KEEP_DATABASE:
|
for entry in KEEP_DATABASE:
|
||||||
|
Reference in New Issue
Block a user