Moodle Full Site Restore

Moodle Full Site Restore

by walid malkawi -
Number of replies: 8
Hello
in order to restore my moodle site i did the following
1-  I installed Moodle and it is working without any problem 
2- I did restore the database.sql dump file by using the mysqldump tool and it has been finished without any error
2- I  copied the moodledata folder and i gave the required permission 
3-  reconfigured the config.php to point to the  restored database and the retsored moodledata folder 
4- the installation completed with no errors 
but when I started browsing the site I discovered that no courses from the restored course is appearing under the courses tab

any one can help !!!!!!
Average of ratings: -
In reply to walid malkawi

Re: Moodle Full Site Restore

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
The courses tab will only show courses that you are actually enrolled in...
In reply to Emma Richardson

Re: Moodle Full Site Restore

by walid malkawi -
thanks for the reply but now I logged in using admin account how to see the created courses
In reply to walid malkawi

Re: Moodle Full Site Restore

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
I don't know how you have your site set up but Admin/Manage Course and Categories...
In reply to walid malkawi

Re: Moodle Full Site Restore

by Ken Task -
Picture of Particularly helpful Moodlers
Suggest turning on Debugging ... all the way up to developer level ... to see if moodle is telling you anything.

Why?  Your method of restoring a site was not the recommended method, thus, depending upon versions of Moodle .... you might have installed a higher version of code, that doesn't quite match what's in DB.

So what was the old moodle version?
What version of Moodle did you install at first?

If you open the sql dump you restored in a text editor, version of Moodle should show there.

'SoS', Ken

In reply to walid malkawi

Re: Moodle Full Site Restore

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers
Are the table names in the restored database using a different prefix to the $CFG->prefix in config.php?
In reply to walid malkawi

Re: Moodle Full Site Restore

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Others here are providing some good suggestions. I can share a few thoughts with you.

Have you cleared the caches on your restored Moodle?

Relative to your sequences, here are some of my thoughts.
1) Does this "installed Moodle" have the same plugins that your original had? Is it the same Moodle version?
2) When restoring the data into the database, I like to "drop" all existing tables before restoring the original tables. Leon's suggestion is good. It might be that you have duplicate tables under two different names.
2b) When I do this, I usually delete the moodledata folder before restoring, to make sure that the new moodledata contents exactly matches the original.
3) I like to replace the new config.php file with a backup of the old (given that your new Moodle has identical settings.)
Average of ratings: Useful (1)
In reply to walid malkawi

Re: Moodle Full Site Restore

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Comparing your steps against the official document https://docs.moodle.org/en/Moodle_migration, I see that https://docs.moodle.org/en/Moodle_migration#Copy_the_Moodle_code_from_the_old_server_to_the_new_server contradicts with "1- I installed Moodle and it is working without any problem" - i.e. you don't _install_ anything. Possibly the install script ran and created a fresh database. Look at the database declared in the config.php file and the one your restored to in step 2).
Average of ratings: Useful (1)