backintime icon indicating copy to clipboard operation
backintime copied to clipboard

Check quota on the remote server instead of overall free inodes / space

Open mlopezantequera opened this issue 9 years ago • 7 comments

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.

mlopezantequera avatar Mar 17 '16 10:03 mlopezantequera

Sorry, but I've no idea how to check a quota. Is there any common command for checking?

Germar avatar Mar 17 '16 21:03 Germar

I don't see a way, too. But I am not sure.

buhtz avatar Sep 17 '16 21:09 buhtz

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

mossroy avatar Sep 18 '16 16:09 mossroy

Thanks @mossroy. But that doesn't work for BTRFS or XFS quota, does it?

Germar avatar Sep 18 '16 16:09 Germar

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 )

mossroy avatar Sep 19 '16 07:09 mossroy

Note about how to check quota on a unixoid system: https://serverfault.com/q/62837/374973

buhtz avatar Sep 15 '22 14:09 buhtz

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 :)

emtiu avatar Sep 15 '22 14:09 emtiu