Results 1 to 2 of 2

Thread: Script to report per-folder storage usage for a user

  1. #1
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    333
    Rep Power
    7

    Default Script to report per-folder storage usage for a user

    Hi all,

    I've had the repeated problem of users not knowing where their storage is really being used. When a user has 100+ folders/subfolders, telling them to mouse over each one to find which is taking a lot of space is not the best solution. I created this the attached script for this.

    It will take as an argument a specific username. It currently assumes that there is only one domain name (this will be modified later if there is interest).

    ex:
    folder_size_check.py chauvetp

    It will print a list of all folders the user has over 10MB in size. Example output:

    Inbox -- total size of folder: 119 MB, in 753 messages
    Sent -- total size of folder: 76 MB, in 1774 messages
    Trash -- total size of folder: 50 MB, in 1041 messages

    Its a work in progress and isn't the neatest program in the world but does the job I needed it to. I figured others might benefit from it. If you have questions or suggestions, please let me know.

    Requirements:
    • Must be run on the Zimbra server
    • Python 2.4 or later
    • Python's MySQL & LDAP libraries
    Attached Files Attached Files
    ---
    Paul Chauvet
    State University of New York at New Paltz

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    very handy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Zimbra 7.0.1 Database Issue after upgrade
    By n.bochev in forum Administrators
    Replies: 3
    Last Post: 03-16-2011, 01:07 AM
  2. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  3. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 11:44 AM
  4. Replies: 2
    Last Post: 02-12-2008, 11:55 AM
  5. Replies: 3
    Last Post: 08-11-2007, 12:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •