From 8e9e915cdc80ad9636acb301c02bfdee548ff419 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 26 Aug 2025 13:35:58 +0200 Subject: [PATCH] build --- omv_backup.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/omv_backup.py b/omv_backup.py index ba9e555..121d179 100755 --- a/omv_backup.py +++ b/omv_backup.py @@ -235,10 +235,7 @@ if _STOP: cmnd = f"docker stop {c.split()[-1]}" status, running_containers = subprocess.getstatusoutput(cmnd) def restore_job(): - logging.info(f'starting restore job') - return 0 logging.info("Starting Restore") - print("Starting Restore") now = datetime.datetime.now() STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S") if _APP == "all": @@ -558,7 +555,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: @@ -759,7 +756,9 @@ def backup_job(server): message= "finished1" client.publish(topic, message,qos=2,retain=True) return 0 - +if _RESTORE: + restore_job() + sys.exit() if _SSH_TEST: user = "root" cmnd = "ls -la"