Urgent! Where are the all courses stored in Moodle?

Urgent! Where are the all courses stored in Moodle?

by Narit B -
Number of replies: 6

How can I find or Where are the all courses stored in Moodle?

Now I can access in moodle because something went wrong with the system files and I never backup all the courses yet but I already copy hold of Moodle folder.

If I need to reinstall the moodle in new PC/Server, How can I restore all the courses back?


Thank you 



Average of ratings: -
In reply to Narit B

Re: Urgent! Where are the all courses stored in Moodle?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Courses are predominantly stored in the database

If you don't have a backup of your database then you're not getting the courses back. 

In reply to Howard Miller

Re: Urgent! Where are the all courses stored in Moodle?

by Narit B -

Hi Howard Miller


Meaning hold folder of Moodle that I copies not have a database inside right?

  

I used Moodle on NAS QNAP and Database is MyphpAdmin.

Can you advice or recommend me how to backup the database please? 


Note: I also used plugin H5P to created course meaning in database also right?


Thank you

In reply to Narit B

Re: Urgent! Where are the all courses stored in Moodle?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

I backup the MySQL database, and moodledata with the following command lines.


Backup the Moodle database

mysqldump -u[username] -p[password]-A --opt -r[location]/backup_moodle/backup-moodledb.sql [databasename]


Backup moodledata

tar cfz backup_moodle/backup-moodledata.gz moodledata3/

Average of ratings: Useful (1)
In reply to Rick Jerz

Re: Urgent! Where are the all courses stored in Moodle?

by Narit B -

Hi Rick Jerz

Big thanks to responded my issues and I will try to learn  & explore from that.


Note: I also don't know how to use the command lines in NAS system.


Thank you once again. 


In reply to Narit B

Re: Urgent! Where are the all courses stored in Moodle?

by Ken Task -
Picture of Particularly helpful Moodlers

Please see:

https://www.google.com/search?q=how+to+do+an+sql+dump+of+a+database+phpmyadmin

for how to backup DB in phpmyadmin

Is this related to other post?

https://moodle.org/mod/forum/discuss.php?d=365914#p1475443

'spirit of sharing', Ken



Average of ratings: Useful (1)
In reply to Ken Task

Re: Urgent! Where are the all courses stored in Moodle?

by Narit B -

Hi Ken Task

Thank you once again and I will learn more about that as you recommended.


Big thanks.