mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-09-13 04:10:10 +02:00
build
This commit is contained in:
@@ -558,7 +558,7 @@ def backup_job(server):
|
||||
stdout=subprocess.PIPE)
|
||||
while process.poll() is None:
|
||||
line = process.stdout.readline().decode("utf-8").split("/")
|
||||
#print(line[0])
|
||||
print(line[0])
|
||||
if line[0] in apps:
|
||||
logging.info(f"Working on app {line[0]}")
|
||||
while True:
|
||||
@@ -571,7 +571,7 @@ def backup_job(server):
|
||||
#print(len(apps))
|
||||
topic = "sectorq/amd/backups"
|
||||
msg = {"mode":_MODE, "status":"started","bak_name":"complete","host":host,"cur_job":b,"sub":line[0],"start_time":STARTTIME,"end_time":"in progress","progress":str(round(progress)) + "%","finished":",".join(finished)}
|
||||
# send_mqtt_message(topic,msg)
|
||||
client.publish(topic, json.dumps(msg),qos=0, retain=False)
|
||||
progress = progress + step
|
||||
|
||||
cmnd = f"rm -rf {FULL_BACKUP_LATEST}"
|
||||
|
Reference in New Issue
Block a user