AGIX Discussion All Linux HowTo's Enterprise LMS

Migrating Moodle to Enterprise LMS

This article explains how to migrate your Moodle to Enterprise LMS. My objective here is to migrate the entire Moodle including theme, plugins, users and course data from my Moodle to eLMS. I need SSH (command line) access to my Moodle for this to work because i need to backup the current Moodle database and FTP that database backup and the “moodledata” directory over to eLMS.

First sign up at “” and then log in.

Create a new Moodle instance and leave it empty – don’t log in and configure it because we’re about to overwrite it with our migrated data. I’ve called my new Instance “moodle-ex1” which eLMS calls “”. We can use a DNS CNAME later on to call it something like “”.

Once you’ve created the new Instance, expand it and click the Edit button. Uncheck the box saying “eLMS managed code”. I don’t want eLMS to manage this Instance because they’d replace my Moodle code-base with theirs and my plugins would go missing. That’s Moodle’s fault, not eLMS’s.

Now the migration part. Click on the “Migration” tab at the top of the eLMS page. The Migration page explains how to migrate and the steps needed. Most import is the username and password you need to use when FTP’ing the Moodle data and database.

My FTP credentials and other details look like this:

Username: ftp80002
Port: 2222 (SFTP, recommended) or 21 (FTP + "explicit SSL")
Password: nottelling
SFTP link: s
FTP link: ftpes://

I’ve used “lftp” for my FTP client to migrate the “moodledata” directory and it’s contents:

nohup lftp -e "mirror --reverse /var/moodledata /migration/moodle-ex1/" &

And i’ve done the following to backup and migrate the Moodle MySQL database:

mysqldump -u moodle -p moodleDatabase | gzip -1 > /tmp/database.mysql.gz
nohup lftp -e "put -O /migration/moodle-ex1/ /tmp/database.mysql.gz" &

I’ve used “nohup” and the tailing “&” so i can leave the FTP process running long after i’ve gone to sleep – i have plenty to upload.

We can proceed with the above FTP processes completed. Go to your Instances (using the navigation Tab at the top of the eLMS page) and expand the Moodle instance you created earlier (click the down-arrow to the right of the Instance).

Click the Restore button. A new page shows your restore options. In the “Source Type” drop-down list, select “Migration / FTP Upload”. In the “Upload Name” drop-down list, select the migration to import. We’re essentially restoring from “our” backup rather than an eLMS backup.

Click the Proceed button and confirm your choice. You might have to wait a little if you have a large Moodle. Click the “refresh” button on the Instances page every now and then to see if it’s done.

When done, you should be able to visit the new Moodle Instance by navigating to “” – or whatever you called yours.

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *