This commit is contained in:
2025-01-10 23:23:31 +01:00
parent 9731033efc
commit 8e93c77fe2

View File

@ -306,6 +306,7 @@ if _BACKUP:
time.sleep(10)
continue
else:
finished = []
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,"finished":",".join(finished)}
@ -313,7 +314,7 @@ if _BACKUP:
client.disconnect()
# iterate over files in
# that directory
finished = []
for filename in os.scandir(directory):
if filename.is_file():
print(filename.path)