Fix dir exclusions

This commit is contained in:
amcmanu3 2024-06-25 13:33:52 -04:00
parent 7b1afec9cb
commit 1ba0520c0e

View File

@ -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