This commit is contained in:
2025-04-07 08:06:35 +02:00
parent b9c99befab
commit 9f1992f098

View File

@ -630,8 +630,7 @@ if _BACKUP:
send_mqtt_message(msg)
os.remove(filename.path)
user = "root"
cmnd = "/myapps/venv/bin/python3 /myapps/omv_backup.py -r all"
topic = "sectorq/amd/backups"
for s in servers:
#if s != "rack.home.lan":
@ -640,6 +639,9 @@ if _BACKUP:
elif s == "nas.home.lan":
user = "admin"
cmnd = "/share/Data/__GITLAB/omv_backup/venv/bin/python3 /share/Data/__GITLAB/omv_backup/omv_backup.py -r all"
else:
user = "root"
cmnd = "/myapps/venv/bin/python3 /myapps/omv_backup.py -r all"
msg = {"mode":_MODE, "status":"restore","bak_name":"s","host":s,"cur_job":"aaa","start_time":1,"end_time":1,"progress":0,"finished":1,"used_space":1}
logging.info(msg)