backintime
backintime copied to clipboard
Check quota on the remote server instead of overall free inodes / space
In a shared remote server, the overall free space or inodes is not helpful if there is a quota system in place. It would be nice to be able to do this.
Sorry, but I've no idea how to check a quota. Is there any common command for checking?
I don't see a way, too. But I am not sure.
I'm no expert on this topic, but the quota command-line should provide this info.
According to http://stackoverflow.com/questions/9781071/python-access-to-nfs-quota-information , some parameters (-wp) make the output more easy to interpret programmaticaly. For example :
quota -wp -f /path/to/directory
To understand what these numbers mean : http://serverfault.com/questions/94368/understanding-quota-output
Thanks @mossroy. But that doesn't work for BTRFS or XFS quota, does it?
You're right. I only tested it on ext4.
For btrfs and xfs, there should be similar commands, I suppose : see https://serverfault.com/questions/797219/how-to-display-quota-limit-on-btrfs-subvolume for btrfs
For xfs, I'm wondering if the standard df command doesn't give the info (see http://oss.sgi.com/archives/xfs/2012-11/msg00479.html )
Note about how to check quota on a unixoid system: https://serverfault.com/q/62837/374973
I guess the dream would be to have a selection box in the settings like so:
[x] Check quota on target server. Quota type:
- *nix quota
- btrfs quota
- XFS quota
- zfs quota
Let's keep this as a good idea for later :)