Perl script that sets the quota for all domains to the values configured in Virtualmin.
Download the script
If the quotas are lost for some reason the script will set them back to the correct value. I had some problems that the quotas will be lost for some accounts on reboot of the server and this script will set the quotas to the correct values.
Note: The script will look in this folder for the domain configuration files: /etc/webmin/virtual-server/domains/
Run the script as a nightly cron job with the command:
Technology and design
Perl script that uses configuration files in Virtualmin to find out the quota for each account.