What is "quota-for-domain" exactly (referenced in virtualmin create-domain help)?

If I run:

virtualmin create-domain --domain some-domain.com --user some-user --pass ‘SomePassword’ --mail --dns --spam --virus --dir --webmin --unix --quota 20971520

It tells me “No quota specified” followed by its help, which includes:

[–quota quota-for-domain|UNLIMITED]

Nothing I can think of works there though:

–quota
–quota UNLIMITED
–quota “UNLIMITED”
–quota|UNLIMITED
–quota:UNLIMITED
–quota quota-for-domain|UNLIMITED
–quota “20971520”
–quota ‘20971520’
–quota:20971520
–quota quota-for-domain|20971520

I have looked through this forum and it seems that people ask about this one way or another every few years but no one ever answers. Perhaps I am joining their ranks (or maybe my search-fu is off). I suppose what I’d like to know either way is:

“Does no one respond because no one knows”
“Does no one respond because there is obvious documentation somewhere that we are too lazy to be looking at”
“Does no one respond because the answer is so obvious and we are too stupid to see it”

It seems to me that there must be a “quota plans” thing in here somewhere I’ve never set up and so it expects something like “–quota standard” or something and so the admins here see this question and slap their foreheads and say “Geesh you idiots, how easy do this have to be, it asks you about quota plans in the wizard” or something like that… so I guess I’m looking for confirmation about whether looking for that is the right thing, or if this feature just plain doesn’t work.

Thanks.

PS - For virtualmin create-user the help is different:

[–quota quota-in-blocks|“UNLIMITED”]

And --quota 1048576 works fine.

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Virtualmin version 7.20.2

Note to self, in a year when I’ve forgotten… I found it:

–quota (for create-domain, not for create-user) must be used in conjunction with --uquota (which is the owner of the domain)

And they’re in kb (or “blocks” like create-user).

The values can be the same if you desire so:

virtualmin create-domain --domain tester.com --user tester --pass ‘testpass’ --mail --dns --spam --virus --dir --webmin --unix --quota 31457280 --uquota 31457280

Makes a 30GB quota site whose owner is entitled to 30GB.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.