Export Storage Usage Report

FileCloud lets administrator to export storage usage report of a particular user or all users or particular 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.

Before following the instructions outlined in this article please request the file " storageusagereport.php " from FileCloud support by sending an email to support@codelathe.com.


 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
    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
    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
    php storageusagereport.php -g testGroup > output.csv