mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-09-13 20:20:11 +02:00
build
This commit is contained in:
@@ -482,8 +482,15 @@ def backup_job(pl):
|
|||||||
client2 = mqtt.Client()
|
client2 = mqtt.Client()
|
||||||
client2.username_pw_set("jaydee", "jaydee1")
|
client2.username_pw_set("jaydee", "jaydee1")
|
||||||
client2.connect("mqtt.home.lan",1883,60)
|
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')
|
logging.info(f'starting backup job')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
server = pl["host"]
|
server = pl["host"]
|
||||||
if pl["mode"] == "dry":
|
if pl["mode"] == "dry":
|
||||||
_DRYRUN = True
|
_DRYRUN = True
|
||||||
|
Reference in New Issue
Block a user