Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Moodle migration.

Moodle migration

From MoodleDocs
Revision as of 16:34, 6 July 2007 by m e (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RESTORING A SINGLE COURSE When restoring a moodle backup file to moodle on a different server than the one used to create the backup, the absolute referenced links to files maybe broken. To fix this problem open the backup-coursename.zip file and edit the moodle.xml file replacing http://yourserver.com/file.php/243/ with $@FILEPHP@$. When the file is restored it will use the correct file path for the new course.

MIGRATING A COMPLETE MOODLE SITE When loading a mysql dump of a moodle server into mysql on another server the absolute referenced links will be broken. This can be most easily fixed with an UNSUPPORTED program replace.php. After uploading the mysql dump file point your browser to http://yourserver.com/admin/replace.php. Enter the url for your old server (http://oldserver.com/) and new server (http://newserver.com/) and it will fix the mysql tables.

TIP: You may want to check the mysqldump file to see how the old server was referenced.