Browse Source

Merge branch 'master' into julien

pull/3/head
Julien Escario 3 years ago
parent
commit
e006fbdda5
  1. 14
      zimbra/divers/export_accounts_quota.sh

14
zimbra/divers/export_accounts_quota.sh

@ -0,0 +1,14 @@
#!/bin/bash
echo "Process Export Quota"
zmprov -l gaa | while read ACCOUNT
do
QUOTA=`zmprov ga ${ACCOUNT} | grep "zimbraMailQuota" | awk -F: '{ print $2 }'`
USAGE=`zmmailbox -z -m ${ACCOUNT} gms`
QUOTA=`expr ${QUOTA} / 1024000000`
QUOTA="${QUOTA} GB"
echo "ma ${ACCOUNT} zimbraMailUsage : ${USAGE} / ${QUOTA} "
done > /tmp/accounts.csv
Loading…
Cancel
Save