Export Storage Usage Report

The storage usage report shows information about the storage usage of a specific user, all users, or a specific group.

Prerequisite

To use file export tool, mongodb should be enabled in PHP CLI mode.

To enable mongodb, the following line should be added to the end of PHP ini file.

Enabling mongodb
extension=mongo.so

In Linux, PHP ini file should be under /etc/php5/cli/php.ini
In Windows, PHP ini file should be under XAMPP\php\php.ini

If mongodb is not enabled for PHP CLI mode, the export tool will fail.

 Exporting storage usage information

  1. In a command line enter:

    For Windows:

    cd c:\xampp\htdocs\resources\backup
    PATH=%PATH%;C:\xampp\php
    

    For Linux:

    cd /var/www/html/resources/backup/
    
  2. For both Windows and Linux, enter:

    To export storage usage information for a single user
    The following code shows how to export storage usage information of a user 'simon'.

    Single User

    PowerShell
    php storageusagereport.php -u simon > output.csv
    
    


    To export storage usage information for all users
    The following code shows how to export storage usage information of all users.

    All users

    PowerShell
    php storageusagereport.php > output.csv
    
    

    To export storage usage information of a Group
    The following code shows how to export storage usage information of a group 'testGroup'.

    Single Group

    PowerShell
    php storageusagereport.php -g testGroup > output.csv