Restore of course .mbz recover everything

Restore of course .mbz recover everything

by Hugh Murdoch -
Number of replies: 1

Hello

Newish to Moodle, tried to search the forums for an answer with no luck. On Monday we lost all our assignment data from our Moodle MySQL database, our ISP informed us that in fact the DB backups were not being done correctly, our last backup is about 3 weeks old.

My question is if we restore a courses .mbz file will it recover all supporting information, assignments, schedules, etc?

Apologies if this has already been answered elsewhere, any assistance is very much appreciated.

Thanks Hugh

Average of ratings: -
In reply to Hugh Murdoch

Re: Restore of course .mbz recover everything

by Ken Task -
Picture of Particularly helpful Moodlers

A course backup (.mbz) is probably only as good as the DB backup.  By that I mean, if the DB backup was loosing assignments, etc., then there is a good chance that the course backups don't include that information.

However, having said that, one way to know for sure.  Download a 'typical' course .mbz backup to a local HD 'test' folder.  Rename the file extension to .zip.  Unzip it.  The resulting folder will have folders and .xml files.  Inspecting the .xml files with a text editor will show tags that reference activities ... such as assignments ... if the backups contain that information.  There will also be folders - like course_files.  One will have to use the files.xml file to find the location and hashed name of files contained in course_files.

Best of luck!

'spirit of sharing', Ken