This commit is contained in:
2025-01-10 22:42:00 +01:00
parent 301e14a404
commit ab402eb1ae

View File

@ -388,9 +388,9 @@ if _BACKUP:
if _EXECUTE:
status, output = subprocess.getstatusoutput(cmnd)
if _FIRST:
cmnd = f"cd {NEW_BACKUP_DIR}; ln -s initial latest"
cmnd = f"cd {BACKUP_ROOT}; ln -s initial latest"
else:
cmnd = f"cd {NEW_BACKUP_DIR}; ln -s {DATETIME} latest"
cmnd = f"cd {BACKUP_ROOT}; ln -s {DATETIME} latest"
print("Creating new latest link")
#print(cmnd)
# input("????")
@ -415,8 +415,7 @@ if _BACKUP:
client.disconnect()
print("Getting size of FS")
#cmnd = "du -h --max-depth=0 {}".format(BACKUP_FS)
cmnd = "ssh root@omv.home.lan 'df -h /srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8|awk '\\''{ print $3 }'\\''|tail -1'"
cmnd = "df -h /srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8|awk '{ print $3 }'|tail -1"
print(cmnd)
status, output = subprocess.getstatusoutput(cmnd)
used_space = (output.split())[0]