mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
build
This commit is contained in:
@@ -120,7 +120,8 @@ for b in backups:
|
||||
client.disconnect()
|
||||
|
||||
print("Getting size of FS")
|
||||
cmnd = "du -h --max-depth=0 {}".format(BACKUP_FS)
|
||||
#cmnd = "du -h --max-depth=0 {}".format(BACKUP_FS)
|
||||
cmnd = "df -h /srv/dev-disk-by-uuid-02fbe97a-cd9a-4511-8bd5-21f8516353ee |awk '{ print $3 }'|tail -1"
|
||||
status, output = subprocess.getstatusoutput(cmnd)
|
||||
used_space = (output.split())[0]
|
||||
now = datetime.datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user