get datastore free space

Apr 28, 2021
23
1
8
32
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!