An LMS backup is performed, when you want to recover lost data. Backup is also performed, when you migrate the data from an older version of the LMS to a new version. So, how do you perform a backup of the data from your LMS? Well, if you are left scratching your head, it’s time to take a look at how it is done.
While developing an LMS, we create two folders, “LMS name” and “LMS data name”, where all related files will be stored. Now, when creating a backup, we need to zip the files in both the folders and dump into a new folder.
Let’s see how to dump MySql data
Step 1: Click on Start -> Run and type cmd in Run
Step 2: Go to the drive where xampp is installed. For example
>E: (If it is in E drive)
Step 3: Type dir to list out the files present in a drive.
Step 4: type cd xampp, and then press enter key
Step 5: Go for MySql folder inside xampp by typing
Step 6: Enter into bin folder inside MySql by typing
Step 7: We have to run a command in bin to take a backup
MySqldump –u username –p database name > backupname.sql
Step 8: When we press enter key, it will ask for a password, enter the password which was created at the time of creating a database.
Step 9: Type cd .. to go to previous folder
Step 10: Type start bin
After this command, we can see that a .sql file is downloaded in our system. The above file downloaded is a backup file for Moodle LMS database.
This is how you can take the backup from your LMS, I hope this blog was helpful to you.
Subscribe to Our Blogs
Get CommLab's latest eLearning articles straight to your inbox. Enter your email address below: