Investigate course used for import

Investigate course used for import

by Nancy K Hoke -
Number of replies: 2
Greetings - We are currently in Moodle 2.7.1 - I was working with a new faculty member who has been assigned a course for the Fall term. The course content was added using Import. Is there a way in the new course to know the name of the course that was used to perform the import?

Thank you - Nancy K.


Average of ratings: -
In reply to Nancy K Hoke

Re: Investigate course used for import

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Course names cannot be duplicated, or rather short names can't and it is likely not a good idea to have course names the same either. Make a differentiation somewhere. 

Usually, when importing, AFAIK, you are likely only importing one or more elements, not the whole course. If you are bringing over the whole course, do a backup and restore into the new course, appending to the existing course, it should not try to rename the course you are restoring into.

In reply to Nancy K Hoke

Re: Investigate course used for import

by Ken Task -
Picture of Particularly helpful Moodlers

When you say 'import' do you mean a backup was restored to the course?

If that's true, and you have the .mbz file used to 'import', you can find out much information about the backup used.

from the location of the .mbz file: tar zxvf nameofbackup.mbz file if using newer version of Moodle that defaults to using tar.gz for backups ... or

unzip nameofbackup.mbz

In the extracted listing of files/folders, you should see a moodle_backup.xml file.

Open that with a text editor and one will see info such as the following:

<moodle_release>2.6.11+ (Build: 20150619)</moodle_release>

and lines related to the original course (below just a few):

<original_wwwroot>http://site</original_wwwroot>
<original_course_fullname>Creating Student e-Portfolios with Google Sites</original_course_fullname>
<original_course_shortname>eportfolio</original_course_shortname>

'spirit of sharing', Ken