Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...