From 30b93938777afc185bb781b173eda03419a9aac5 Mon Sep 17 00:00:00 2001 From: Adrien P Date: Mon, 20 Oct 2025 22:34:05 +0200 Subject: [PATCH] Do not initiate backup if the section is not enabled --- run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.py b/run.py index 6ca7bda..efc094a 100755 --- a/run.py +++ b/run.py @@ -65,6 +65,10 @@ def backup_system(config, args, antispam_apps): utils.copy_file(args.configfile, backup_path) # Backup applications for app in PRIMARY_APPS + antispam_apps: + if (config.has_option(section, "enabled") and + not config.getboolean(section, "enabled") + ): + continue if app == "dovecot" and args.no_mail: utils.printcolor("Skipping mail backup", utils.BLUE) continue