Skip to content

damienvancouver/user_usage_report

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

User usage report

To generate the report for a user, run the following command:

$ sudo -u www-data ./occ usage-report:generate admin
"admin","2017-09-18T09:00:01+00:00",5368709120,786432000,12,1,1,2,"Nextcloud Admin"

Leaving out the user argument will generate a report for all users on the system:

$ sudo -u www-data ./occ usage-report:generate
"admin","2017-09-18T09:00:01+00:00",5368709120,786432000,12,1,1,2,"Nextcloud Admin"
"test1","2017-09-18T09:00:01+00:00",-2,954368,6,0,2,10,"Test User 1"
"test2","2017-09-18T09:00:01+00:00",-2,164,4,0,0,0,"Second Test user"
"test3","2017-09-18T09:00:01+00:00",-2,164,4,0,0,0,"Test User Three"
"test5","2017-09-18T09:00:01+00:00",-2,164,4,0,0,0,"Fifth Tester"

The CSV data is the following:

  • User identifier
  • Date and time (default in ISO 8601 format, but any format can be specified)
  • Assigned home storage size in bytes (-3 is unlimited, -2 is unknown/not set)
  • Disk space consumed by home storage in bytes (-2 is unknown)
  • Number of files in home storage
  • Number of shares created
  • Number of files created (new files only)
  • Number of files read (download/view)
  • User display name

About

πŸ‘±πŸ“ˆ User usage report

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 95.7%
  • Makefile 4.3%