From 62168bb094093c4c7dec3e5724712a7876dbb3a5 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 16 Dec 2024 22:54:33 +0100 Subject: [PATCH] initial --- omv_backup.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/omv_backup.py b/omv_backup.py index 5ed9d8a..be21197 100644 --- a/omv_backup.py +++ b/omv_backup.py @@ -31,7 +31,6 @@ s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(('192.168.77.1', 1)) IP = s.getsockname()[0] print(IP) -input(" ??") print(output) if int(output) > 0: print("Running already!") @@ -194,10 +193,6 @@ if _RESTORE: client.publish(topic, json.dumps(msg)) client.disconnect() - cmnd = "ssh root@omv.home.lan 'mkdir -p " + NEW_BACKUP_DIR + "'" - - if _EXECUTE: - status, output = subprocess.getstatusoutput(cmnd) print("Create backup dir") print(cmnd) @@ -212,8 +207,6 @@ if _RESTORE: print(cmnd) print("Sync files") if _TEST: - - ans = input("continue?") or "n" if ans == "y" and _EXECUTE: status, output = subprocess.getstatusoutput(cmnd)