diff --git a/omv_backup.py b/omv_backup.py index 7ab7886..f947c27 100755 --- a/omv_backup.py +++ b/omv_backup.py @@ -593,9 +593,9 @@ def backup_job(server): status, output = subprocess.getstatusoutput(cmnd) for f in output.splitlines(): pattern = r"^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{2}-[0-9]{2}-[0-9]{2}$" # regex pattern: string starts with 'abc' - logging.info(f"Checking {f}") + # logging.info(f"Checking {f}") if re.match(pattern, f): - logging.info("Match!") + # logging.info("Match!") dt = datetime.datetime.strptime(f, "%Y-%m-%d_%H-%M-%S") epoch_time = int(dt.timestamp()) @@ -640,6 +640,7 @@ def backup_job(server): send_mqtt_message(topic,msg) topic = "sectorq/backups/start" + logging.info(f"LALA : {topic}") send_mqtt_message(topic, "finished",qos=2,retain=True) topic = "sectorq/amd/restore"