Quotas#
A quota limits how much a user may keep in a folder. When the folder is full, uploads are refused until something is deleted.
A quota is about what is stored. Limits on what a user may transfer, per session, day or month, are something else: see Settings.
Setting a quota#
Quotas are set per user, in the User Manager, in two places.
| Where | Field | Holds for |
|---|---|---|
| on an item of the user's VFS, in the VFS editor | Quota: (MB) | that folder and what is below it |
| on the Settings tab | User level quota MB | the user as a whole |
A quota on an item wins over the user's own. A subfolder can have a quota of its own, which then counts for that subfolder.
Like every setting, a quota can be inherited: a quota on a template gives each user who inherits it that much, each for their own folders. To give a whole team one shared amount, give them one shared folder with one quota.
Two kinds of quota#
| RealFile Quota ticked | not ticked | |
|---|---|---|
| what is compared with the limit | what is really in the folder now | a number that is counted down with every upload |
| deleting a file | gives the space back | gives nothing back |
| files that arrive or leave without the server | are counted | are not noticed |
| needs | the folder to be counted, which takes time on big folders | nothing |
Tick RealFile Quota. It is what people expect a quota to be. The kind that only counts down is for accounts that may upload a fixed amount in all, ever: a trial, a prepaid amount.
How the folder is counted#
For the real kind, the server has to know how much is in the folder. It can find out in two ways, chosen for the whole server in Quota of the Preferences:
| Way | How | Fits |
|---|---|---|
| at the moment | the folder is counted when the user lists or uploads, and the answer is kept for some minutes | few quotas, small folders |
| in the background | all folders with quotas are counted on a schedule, and uploads are added as they happen | many users, big folders, remote storage, a cluster |
With Dir to use for Quota on the Settings tab, the folder that is counted can be another one than the item, such as the folder above it.
What the user sees#
- The web interface shows how much of the quota is used and how much is left.
- An upload that would not fit is refused. Over the web the user reads "Quota exceeded. You have … MB remaining."; an FTP program is told "Quota exceeded. Available space: … MB".
- An upload whose size the server does not know beforehand is stopped when the quota is reached.
- FTP and SFTP programs that ask for free space are told what is left of the quota, not what is free on the server's disk.
A refused upload runs the user's events with the trigger Has an error, so that somebody can be told when a partner hits their limit.
Things to know#
- A quota counts in the folder of this user. Two users who share one real folder with a quota each do not have a quota each: both count the same files.
- On remote storage, counting means listing everything there, which costs time and, in a cloud, money. Use background scanning, or put the limit where the storage is.
- Earlier versions of files that are kept as revisions are outside the folder and do not count.
- A quota does not reserve space. Ten users with 100 GB each on a 500 GB disk can fill it together.
- For a limit on single files, use Max Upload Individual File Size in Settings.