get datastore free space

Apr 28, 2021
23
1
8
34
Hello dears

i want get datastore free space in PBS in CLI but i cant.
I expect getting free space with command like below but i cant:

"proxmox-backup-manager datastore show <name>"

please help me

thanks
 
Hello dears

i want get datastore free space in PBS in CLI but i cant.
I expect getting free space with command like below but i cant:

"proxmox-backup-manager datastore show <name>"

please help me

thanks
This question was already asked and answered here, https://forum.proxmox.com/threads/how-to-get-pbs-storage-free-space.91135/#post-397817

However, you can use the proxmox-backup-client, https://pbs.proxmox.com/docs/command-syntax.html#proxmox-backup-client
# proxmox-backup-client status --output-format json-pretty --repository backupuser@pbs@192.168.1.18:backupserver1
{
"avail": 994162114560,
"total": 3040154091520,
"used": 2045991976960
}
 
hi
those two questions have different subjects.
now i want get datastore details on backup server not on clients and your solution is for client.

thanks
 
you can use the client also on the server, in that case you do not have to put the ip or user
i.e. proxmox-backup-client status --repository backupserver1

alternatively you can just use the linux native tools like df, iow. df -h /path/to/your/datastore