Exclude home dir from backups

This commit is contained in:
2025-12-11 10:59:27 +03:00
parent c2ea2cdb39
commit b41a50006b

View File

@@ -51,9 +51,7 @@ class BackupManager:
"""Get all home directories and their owners"""
app_dirs = []
applications_path = Path("/mnt/applications")
home_path = Path("/home")
source_dirs = itertools.chain(applications_path.iterdir(), home_path.iterdir())
source_dirs = applications_path.iterdir()
for app_dir in source_dirs:
if app_dir == "lost+found":