mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-03 00:23:06 +02:00
lala
This commit is contained in:
@ -74,11 +74,7 @@ print("2")
|
|||||||
client = mqtt_client.Client()
|
client = mqtt_client.Client()
|
||||||
client.username_pw_set(mqtt_username, mqtt_password)
|
client.username_pw_set(mqtt_username, mqtt_password)
|
||||||
client.connect(broker,1883,60)
|
client.connect(broker,1883,60)
|
||||||
now = datetime.datetime.now()
|
|
||||||
STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
|
|
||||||
msg = {"mode":_MODE, "status":"started","bak_name":"complete","host":"","cur_job":"","start_time":STARTTIME,"end_time":"in progress","progress":0}
|
|
||||||
client.publish(topic_sum, json.dumps(msg));
|
|
||||||
client.disconnect()
|
|
||||||
|
|
||||||
backups = {
|
backups = {
|
||||||
"nas": {
|
"nas": {
|
||||||
@ -310,6 +306,11 @@ if _BACKUP:
|
|||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
now = datetime.datetime.now()
|
||||||
|
STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
|
||||||
|
msg = {"mode":_MODE, "status":"started","bak_name":"complete","host":"","cur_job":"","start_time":STARTTIME,"end_time":"in progress","progress":0}
|
||||||
|
client.publish(topic_sum, json.dumps(msg));
|
||||||
|
client.disconnect()
|
||||||
# iterate over files in
|
# iterate over files in
|
||||||
# that directory
|
# that directory
|
||||||
finished = []
|
finished = []
|
||||||
|
Reference in New Issue
Block a user