Moodle Plugins directory: Download courses and users by role | Moodle.org
Download courses and users by role
Allows an administrator to download a list of all the courses or a list of users selected by role to a comma-separated values format (CSV) or Excel 2007 file format.
The plugin creates two entries in Administration: one in Administration > Site administration > Users > Accounts > Download users by role for downloading users, and one in Administration > Site administration > Courses > Download courses for downloading courses. From there you can access the full functionality of the plugin.
In addition to the web interface there is also a command line tool located in admin/tool/downloaddata/cli/downloaddata.php.
Further information about how to use the web interface can be found in Moodle docs at Download courses for downloading courses and at Download users by role for downloading users.
You can discuss this plugin on the Moodle forums.
Thanks Alexandru. Please note that we do not automatically pull from plugins' native repositories so you are expected to officially release the new version 3.0.1 in this plugin directory too. As you are have tagged your github repository, you should find the process quite straightforward - just use the button "Add a new version" and select the v3.0.1 tag to release. The tagged version ZIP will be fetched into the file picker.
Thanks Alexandru. While testing the functionality, I quickly encountered an error when running the plugin on PostgreSQL. Reported as #1 in your tracker. Please make sure to test the plugin on both MySQL and PostgreSQL at least before submitting a fixed version. We will continue with testing and the code review once the fix is available for download here. Thanks for your patience with the review and approval process.
I hadn't tested my plugin with PostgreSQL before contributing because I am not using any direct database queries, instead I am using the official Moodle database wrapper functions which were supposed to be database agnostic.
Let me suggest not to wait for MDL-52574 being fixed. If there is a work-around possible, let me encourage you to use it. Fixing the core bug can take a while and even then, the issue will affect all sites that have not upgraded yet to the Moodle version containing the core fix.
http://integration.moodle.org/job/Precheck%20remote%20branch/19918/artifact/work/smurf.html
Thanks Alexandru for an updated version of the tool. I found it working as expected. The code is well structured and easy to follow. I have not spotted any blockers preventing me from approval now. You are cleared to land now, welcome to the plugins directory!
Please try in testing environment first