Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

Re: Problem restoring some courses from 1.9+ to 2.3

$
0
0
by Ken Task.  

What I did ….

unzipped it.

Edited the moodle.xml file from the command line: nano editor.
(could have done it with TextEdit but wanted to see errant characters)

In the moodle.xml file … findings:

Roles and overrides are included in the xml.

Consider backing up without any users (they won't xfer anyway) AND no roles … all un-checked.

Approximately 2200 lines in the XML dealt with roles and overrides.

In your 1.9 site, put the 12MH - Modern History 2 Unit course at the top level of the site (in categories).

In the 1.9 course before you backup, remove all blocks - those that can be turned off but turned on again in the blocks menu of the 1.9.

You also have OU Blog in the 1.9.  Got OU Blog in the 2?

In the summary for the course, what looks to be copied and pasted code from Office stuff.  Delete summary and retype it using nothing but Moodle … no copy and paste from anything else.  Don't worry about formatting in the 1.9 - no bold, no center, no fancy font ... etc. 

Get the course restored then do the re-formatting.

Ampersand stuff like (spaces added so you can see here):
& l t ; strong & g t; & l t ; u & g t ; & l t ; font size= & quot ;5 & quot ; & gt ;

Normally that stuff doesn't affect things, but in this case might be the culprit as just one errant ampersand thing can render the rest of the site (and maybe in this case, the restore from the backup) useless.

The same applies for sections.
Course Documents & Assessment Tasks
World War One, 1914-1919
War on the Western Front
The Home Fronts in Britain and Germany
Turning Points

Some summaries have only HTML code (hidden to normal viewing) and no text.
Section 6

There's a questionnaire in the XML.  Do you have questionnaire for version 2 installed on the 2 server?

Restored the edited/rezipped backup into a 1.9.19+.
Course restored … no issues but formatting in those that I did not completely remove the ampersand stuff.

Changed the layout of the course there.  Turned off all blocks.
Made a backup.

Restored to a 2.3 (no work around restore … just straight restore)
http://sos.tcea.org/moodle23/course/view.php?id=8158
Guest access allowed so you can see.

Summary: lots of 'scrubbing' to do in the 1.9 course FIRST.  Guess you don't want to update the current 1.9 to the highest 1.9.19+ first so 'scrubbing' is the only way you can do it.

'spirit of sharing', Ken


Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>