This commit is contained in:
2025-09-01 13:17:03 +02:00
parent bbe4d72666
commit f6a106fd91

View File

@@ -482,8 +482,15 @@ def backup_job(pl):
client2 = mqtt.Client()
client2.username_pw_set("jaydee", "jaydee1")
client2.connect("mqtt.home.lan",1883,60)
if "log" in pl:
if pl["log"] == "debug":
LOG_FILE = "omv_backup.log"
logging.basicConfig(filename=LOG_FILE, level=logging.DEBUG, format='%(asctime)s : %(levelname)s : %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
logging.info(f'starting backup job')
server = pl["host"]
if pl["mode"] == "dry":
_DRYRUN = True