Mass change quotas on domains with Quota = X MB

2 posts / 0 new
Last post
#1 Mon, 08/20/2012 - 16:19
gromm

Mass change quotas on domains with Quota = X MB

After adding new hard drive space to our Virtualmin server, we'd like to change the quotas for some (read, many but not all) users.

But I haven't been able to find a way to find all domains with a quota that's say, 50 MB. Once I have this list, I know I can use the command-line tool 'virtualmin modify-domain --quota 100' on each domain in that list.

Mon, 08/20/2012 - 20:39
andreychek

Howdy,

You can get a list of all users and their quotas with this command:

virtualmin list-users --all-domains

You could use that output to script a update to the user quotas.

-Eric

Topic locked