This commit is contained in:
jaydee
2024-12-16 22:54:33 +01:00
parent 2b74c075ae
commit 62168bb094

View File

@ -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)