mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -227,6 +227,7 @@ for b in backups[host]:
|
|||||||
print("Getting size of FS")
|
print("Getting size of FS")
|
||||||
#cmnd = "du -h --max-depth=0 {}".format(BACKUP_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 = "ssh root@omv.home.lan 'df -h /srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8|awk '\''{ print $3 }'\''|tail -1'"
|
||||||
|
print(cmnd)
|
||||||
status, output = subprocess.getstatusoutput(cmnd)
|
status, output = subprocess.getstatusoutput(cmnd)
|
||||||
used_space = (output.split())[0]
|
used_space = (output.split())[0]
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
|
|||||||
Reference in New Issue
Block a user