mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 23:58:33 +02:00
lala
This commit is contained in:
@ -388,9 +388,9 @@ if _BACKUP:
|
|||||||
if _EXECUTE:
|
if _EXECUTE:
|
||||||
status, output = subprocess.getstatusoutput(cmnd)
|
status, output = subprocess.getstatusoutput(cmnd)
|
||||||
if _FIRST:
|
if _FIRST:
|
||||||
cmnd = f"cd {NEW_BACKUP_DIR}; ln -s initial latest"
|
cmnd = f"cd {BACKUP_ROOT}; ln -s initial latest"
|
||||||
else:
|
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("Creating new latest link")
|
||||||
#print(cmnd)
|
#print(cmnd)
|
||||||
# input("????")
|
# input("????")
|
||||||
@ -415,8 +415,7 @@ if _BACKUP:
|
|||||||
client.disconnect()
|
client.disconnect()
|
||||||
|
|
||||||
print("Getting size of FS")
|
print("Getting size of FS")
|
||||||
#cmnd = "du -h --max-depth=0 {}".format(BACKUP_FS)
|
cmnd = "df -h /srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8|awk '{ print $3 }'|tail -1"
|
||||||
cmnd = "ssh root@omv.home.lan 'df -h /srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8|awk '\\''{ print $3 }'\\''|tail -1'"
|
|
||||||
print(cmnd)
|
print(cmnd)
|
||||||
status, output = subprocess.getstatusoutput(cmnd)
|
status, output = subprocess.getstatusoutput(cmnd)
|
||||||
used_space = (output.split())[0]
|
used_space = (output.split())[0]
|
||||||
|
Reference in New Issue
Block a user