Download all documents in a course

Download all documents in a course

by Nancy K Hoke -
Number of replies: 4
Greetings - We are in Moodle 2.7. I know that Moodle is not a file management system.  But, we have faculty that certainly do see it as that and would like to be able to download all uploaded files into a zip file that can then be passed onto our ministry of higher education.  I have tried to download multiple files through the file picker and through the course have not been successful. I can only download one file at a time.  Is it possible to download all the files at once into a zip file? I know I can use backup but I cannot make a separate zip file with just the documents from the backup - can I?

Thank you for your help. Sincerely, Nancy K.


Average of ratings: -
In reply to Nancy K Hoke

Re: Download all documents in a course

by Ken Task -
Picture of Particularly helpful Moodlers
Yes, there is a way but kinda depends upon platform of workstation ... and one's willingness to use command line or not ...

https://github.com/ocdude/moodle2-file-extractor
Above looks like it requires python.

For Macs/Linux - something 'home grown/shared' ...
http://sos.tcea.org/moodle25/

Specifically:
Video - how to use the 'home grown/shared':
http://sos.tcea.org/moodle25/mod/resource/view.php?id=1619

Extracts scripts zip (will download)
http://sos.tcea.org/moodle25/mod/url/view.php?id=1626

'spirit of sharing', Ken
Average of ratings: Useful (2)
In reply to Ken Task

Re: Download all documents in a course

by Nancy K Hoke -

Ken - thank you so very much. I am very sorry that I did not see your excellent reply until today - April 12!

In reply to Nancy K Hoke

Re: Download all documents in a course

by Rodney Fisher -

Hello this would be of great help for us all if you had course we could download ready out of box if you will, we all have a common goal and I am sure everyone is follow international/national English teaching standards so it would satisfy all of our needs and make it easy for our teachers to be on the same page all the time, one of the most important components in teaching.

In reply to Rodney Fisher

Re: Download all documents in a course

by Colin Fraser -
Picture of Documentation writers Picture of Testers

There is an increasing demand for this functionality and has been raised at a number of MoodleMoots recently. A working party did look at it earlier this year at MootAu15, and if I heard correctly, there has been a proposal to make it part of core in the future. How long this will take I don't know. While this is a good idea for a small Moodle, or perhaps for Categories or even courses, a site wide zipped file could be  of massive size. Even with using the .tar.gz format just creating the zip would likely break the Moodle, use up all the resources on a server which may not be welcomed on a shared server.  

I have seen some courses, particularly those using videos, higher end graphics and even sound files, going well over 4gb, so this sort of functionality needs to be very carefully considered as to how it is to be implemented in a site.