Page tree
Skip to end of metadata
Go to start of metadata

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.

 

Usage

 

All users
madhan@li111-150:~$ cd /var/www/resources/backup
madhan@li111-150:/var/www/resources/backup$ sudo php ./storageusagereport.php > output.csv

 

Exporting storage usage information of a Single User

The following code shows how to export storage usage information of a user 'simon' to the directory.

Single User
madhan@li111-150:/var/www/resources/backup$ sudo php ./storageusagereport.php -u simon > output.csv

Exporting storage usage information of all users

The following code shows how to export storage usage information of all users to the directory.

All users
madhan@li111-150:/var/www/resources/backup$ sudo php ./storageusagereport.php > output.csv

Exporting storage usage information of a Group

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

Single Group
madhan@li111-150:/var/www/resources/backup$ sudo php ./storageusagereport.php -g testGroup > output.csv

Windows Specific

In a windows command shell, commands will work similarly as stated above.

All users
C:\WINDOWS\system32>cd c:\xampp\htdocs\resources\backup
c:\xampp\htdocs\resources\backup>c:\xampp\php\php.exe storageusagereport.php > output.csv
  • No labels