_techie_ Posted September 15, 2014 Posted September 15, 2014 Hi. We have a Moodle 2.2 Site, and I have two courses which I would like to download all course files for in bulk. These are simply assignments, PDF documents, power points, and hyperlinks. Is there an easy way to do this? Previous experience of moodle was 1.9, and simply browsing the moodledata directory and copying the contents was the easy way. There just seems to be DAT files in the moodledata directory in 2.2 Cheers Mark
unixman_again Posted September 15, 2014 Posted September 15, 2014 Backup the course and look at the zip file created.
_techie_ Posted September 15, 2014 Author Posted September 15, 2014 I did backup the course, but only received a MBZ file. You cannot export as a traditional ZIP in 2.2 Extracting this just gave me a load of XML files, and some files without any extensions with random filenames. This is very annoying! Cheers for your suggestion though.
unixman_again Posted September 15, 2014 Posted September 15, 2014 Ah but if you extract the mbz with 7-Zip and look at the files.xml, it will show you the original file name and what it is called now. You can then rename it as you see fit. You could probably write a script to process the xml and do the renaming for you. Here's a sample from a quick test I ran in which the file camera_icon.gif is called b20cb217c9797a9e4443e665836969f403ca44f3 in the extracted tree b20cb217c9797a9e4443e665836969f403ca44f3 35552 course legacy 0 / camera_icon.gif 4669
_techie_ Posted September 15, 2014 Author Posted September 15, 2014 Thanks for that.... I'll have a look at your suggestion! Seems I have some work to do. Cheers muchly.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now