This commit is contained in:
2025-08-26 15:27:23 +02:00
parent 29cb028c5c
commit 781a74ba20

View File

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