mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix dir exclusions
This commit is contained in:
parent
7b1afec9cb
commit
1ba0520c0e
@ -397,6 +397,9 @@ class HelpersManagement:
|
|||||||
Backups.delete().where(Backups.backup_id == backup_id).execute()
|
Backups.delete().where(Backups.backup_id == backup_id).execute()
|
||||||
|
|
||||||
def add_backup_config(self, conf) -> str:
|
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)
|
backup = Backups.create(**conf)
|
||||||
logger.debug("Creating new backup record.")
|
logger.debug("Creating new backup record.")
|
||||||
return backup.backup_id
|
return backup.backup_id
|
||||||
|
Loading…
Reference in New Issue
Block a user