From 1ba0520c0eff1d4509a00032418f71bd40ad7ed0 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Tue, 25 Jun 2024 13:33:52 -0400 Subject: [PATCH] Fix dir exclusions --- app/classes/models/management.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/classes/models/management.py b/app/classes/models/management.py index d44306eb..1a3e4a11 100644 --- a/app/classes/models/management.py +++ b/app/classes/models/management.py @@ -397,6 +397,9 @@ class HelpersManagement: Backups.delete().where(Backups.backup_id == backup_id).execute() def add_backup_config(self, conf) -> str: + if "excluded_dirs" in conf: + dirs_to_exclude = ",".join(conf["excluded_dirs"]) + conf["excluded_dirs"] = dirs_to_exclude backup = Backups.create(**conf) logger.debug("Creating new backup record.") return backup.backup_id