Moving from MoodleCloud to self-hosted Moodle: what the move involves
Courses and users move from MoodleCloud to your own Moodle through documented core tools: course backups and restores, and user upload through the core upload users tool, but site settings, plugins, themes and integrations do not travel with them and must be rebuilt on the new server. That split is the core of the project. A team that needs control over hosting location, plugin choice or data handling is usually moving for reasons that also change how the target site is configured, so the plan should treat course content as the easy part and the surrounding configuration as the main work. Start by inventorying what the current MoodleCloud site actually uses: enrolment methods, authentication, custom roles, themes, any external tools connected through LTI or web services, and the reports and scheduled tasks staff rely on.
Effort depends mostly on three things: the number of courses and the size of their files, the number of plugins and custom themes your staff depend on, and how many systems the site connects to, such as an identity provider, a student information system or an HR feed. A small site with standard activities and manual accounts is a different job from a site with years of course history, a branded theme and single sign-on. Ask any partner or internal team to state, in writing, which of these components are in scope, how course backups will be counted and tested, and who is responsible for user matching and password or identity reset after cutover. Confirm the target Moodle version with your team first, because it sets the PHP and database versions you must provision, and it determines whether a restored backup will work without an intermediate step. The Moodle releases page lists the current support windows you should check against your upgrade plan.
What maps cleanly from MoodleCloud and what must be rebuilt
This table compares common MoodleCloud capabilities with their self-hosted equivalent and notes what moves as data, what moves as configuration and what needs rebuilding. Read the migration notes column first, then confirm any plan-dependent item with Moodle before you scope the work.
| Capability | Self-hosted equivalent | Migration notes |
|---|---|---|
| Course backups | Course backup (.mbz) restored through core restore tools | Usually restores cleanly when the source and target versions are compatible. Test on a copy and check activity settings afterward. |
| Course content and activities | Core activities and resources in your own instance | Most content moves in backups. External tools and embedded links may need URL checks and rework. |
| Question banks | Question bank export and import in core formats | Export from MoodleCloud and re-import, then review categories, images and question types before exams. |
| User accounts | Users created by upload, external database or an identity provider | Export user lists and map identifiers. Passwords do not transfer, so plan how users first sign in. |
| Enrolments and roles | Course enrolments and role assignments in your instance | Recreate sitewide roles and category structure. Confirm which custom roles your MoodleCloud site uses. |
| Grades and completion | Gradebook and completion data within course restores | Check grade items, weighting and completion rules after restore. Historic grade exports can serve as an audit copy. |
| Files and moodledata | Files stored on your file system or object storage | Files come with course backups, but large or site-level files may need separate copy steps. Confirm storage limits with Moodle. |
| Themes and branding | Your own theme, built on core theme code | Themes do not transfer. Plan a new theme or a configured core theme, and rebuild logos and styling. |
| Authentication | Core or plugin authentication such as SAML 2.0 via auth_saml2 | Sign-in methods are configured fresh. Check which methods MoodleCloud offers before assuming a match. |
| Plugins | Any plugin you vet and support, subject to your own review | Plugins not allowed on MoodleCloud can be added, but each one needs version matching, testing and a maintenance owner. Confirm MoodleCloud plugin restrictions with Moodle. |
| Hosting limits and plan features | Limits set by your own infrastructure | MoodleCloud plan limits differ by plan and change over time. Confirm current limits with Moodle before scoping. |
Documented Moodle tools for courses, users and questions
Moving from MoodleCloud relies on a small set of tools that ship in Moodle core. Each one moves a different kind of data, and each has its own version and access limits. Read them together before deciding what to export and in what order.
Course backup and restore
A course backup produces an .mbz file that bundles course structure, activities, files and settings, but not site-wide users or the full database. Restore it on a Moodle version that is the same as or newer than the one that created it, and expect to recheck quizzes, grade items and any activity that depends on a plugin. Confirm whether your MoodleCloud plan lets you download course backups before you plan the course inventory.
Upload users tool
The core upload users tool loads accounts from a CSV file, with columns for username, email, names and optional profile fields. It is the practical route for bringing people across when MoodleCloud cannot give you a database export. Map authentication methods and password handling to your identity setup first, because the accounts you create here must match how your new site signs users in.
Upload courses and enrolments
The core upload courses tool creates course shells from a CSV file and can attach enrolments in the same pass. Use it for course structure and teacher assignments, then restore full content from .mbz backups into those shells. Keep course short names unique, because duplicates will block or confuse the import.
Question import formats
Moodle XML keeps question types, categories, feedback and images together, so it is the best format for moving a question bank between Moodle sites. GIFT and Aiken are plain-text formats that suit spreadsheet or authoring workflows but support fewer question types. Choose the format per question type, and check imported questions in a test quiz before any exam uses them.
Version matching and site copies
A full site move needs the database and the moodledata directory copied together, plus the same code version or a supported upgrade path. Check the target server requirements for your release, because Moodle 5.1 needs PHP 8.2 or later and PostgreSQL 15, and Moodle 5.3 needs PHP 8.3 or later and PostgreSQL 17. A site-level copy of the database and moodledata is a separate operation from a course backup, and MoodleCloud may not allow it. Confirm with MoodleCloud what database and file export access your plan provides before you commit to a cutover plan.
How the parallel run and cutover are sequenced
The sequence turns a MoodleCloud export into a self-hosted Moodle that users can sign in to, with each stage checked against the one before it. Nothing is switched off until both sites have been compared and the data retention position is confirmed in writing.
Inventory courses, users, plugins and integrations
The MoodleCloud administrator and DeployOpen list every course with its owner, enrolment method and activity types, every user account with its authentication method, and every plugin and external connection in use. Confirm with MoodleCloud which plugins were available on your plan, because plugins it did not allow will need a new install path on your own server. The step is done when the inventory has a named owner for each course and each integration, and each item is marked as transfers, rebuilds or retires.
Select the target version and server stack
Choose the Moodle release you will run, then match the PHP, database and web server versions it requires. Check the upgrade rules for the release you pick, since a backup from one version can only be restored into a version at or above its own. Confirm that the web server document root will point to the /public directory on Moodle 5.1 or later. The step is done when a written stack specification exists and each plugin in the inventory has a confirmed version that supports the chosen release.
Restore a representative course set in a pilot
Take course backups from MoodleCloud for a set of courses that covers each activity type, each enrolment method and any heavy use of files or question banks. Restore them into the new environment and review the results against the originals. Record which content, grades, groups and completion settings survived and which needed manual work. The step is done when the pilot restore list is signed off by the course owners and every gap has an assigned fix.
Import users and set up authentication
Export the user list from MoodleCloud and load it into the new site with the core user upload tool, mapping fields so that usernames, emails and profile data match. Configure the authentication method that will be used from cutover, such as manual accounts, an identity provider plugin or LDAP, and test sign-in with a set of pilot accounts. Passwords generally do not export with the account, so plan how users will set or reset them. The step is done when pilot users sign in through the intended method and their enrolments show the expected courses.
Run both sites in parallel and compare
Keep MoodleCloud live and in use while the self-hosted site runs with the same courses, users and plugins. Compare course counts, enrolments, grades, completion records and file counts between the two sites on a fixed schedule, and log every difference with a cause. Treat changes made in MoodleCloud during this period as a known delta to carry into the final restore. The step is done when the comparison log shows no unexplained differences and the course owners have confirmed the self-hosted courses in writing.
Cut over the domain and user access
Freeze content changes on MoodleCloud, take a final backup and restore it into the self-hosted site, then repeat the comparison for the delta. Point the domain or DNS record to the new site, update the site URL and any integrations that call Moodle, and announce the change to users with sign-in instructions. Confirm that cron and scheduled tasks are running on the new server. The step is done when users can sign in at the new address, integrations respond, and the owners have accepted the cutover.
Decommission MoodleCloud after retention is confirmed
Confirm with your compliance or records owner how long the MoodleCloud data and backups must be kept, and whether a final export must be stored under your own control. Keep a read-only or archived copy for that period if the policy requires it, and remove access for users and integrations that no longer need it. Close the subscription only after the retention position is confirmed in writing and the export is verified. The step is done when the retention record, the stored export and the subscription closure date are documented.
What drives the cost and duration of the move
This table lists the factors that change the effort of moving from MoodleCloud to a self-hosted Moodle, and whether each one is paid once or keeps recurring. Use it to see which parts of a quote are fixed by your content and accounts and which parts you can reduce before work starts.
| Driver | Why it changes effort | What to ask for in a quote |
|---|---|---|
| Number of courses and backup size | Each course is backed up, restored and checked, and large backups take longer to move and verify. This is one-time work. | Course count, total backup size per course category, and which courses will be archived instead of moved. |
| Quiz and question bank volume | Questions, images and attempt data must be exported and re-linked. Large banks need more checking before exams. One-time. | Number of quizzes, question bank size, and whether attempt history must be kept or only question content. |
| User accounts and enrolment methods | Account export, password handling and enrolment mapping (manual, cohort, or sync) drive the matching work. One-time, but a recurring sync adds ongoing effort. | User count, enrolment methods in use, and whether memberships must sync from an outside source after cutover. |
| Plugins to reinstall or replace | MoodleCloud limits which plugins can be used, so plugins you add must be vetted, installed and tested against your target version. One-time, with recurring updates. | Full plugin list, the target Moodle version, and which plugins need a replacement or a custom build. |
| Custom themes and template overrides | Theme files and overrides must be rebuilt, reviewed and tested on the new site. One-time, with recurring maintenance on upgrades. | Whether the theme is rebuilt or adapted, and the test pages each theme must pass. |
| SSO and HR feeds | Identity provider setup, attribute mapping and any HR-driven account changes must be built and tested. One-time build, recurring operation. | Identity provider type, attributes required, and the source and frequency of HR feeds. |
| Integrations with video and grading tools | Each connected tool needs its settings, credentials and callbacks rebuilt on the new host and tested with real course content. One-time, with recurring credential renewal. | List of connected tools, whether they use LTI or API keys, and who holds the vendor accounts. |
| Data retention rules | Deciding what to keep, archive or delete affects how much data is moved and how long it is stored. Retention schedules recur after cutover. | Retention periods for courses, logs and user data, and which records must be kept for audit. |
| Cutover rehearsals | Each rehearsal repeats the restore, checks and fixes. More rehearsals shorten the live window but add one-time effort. | Number of rehearsals included, who signs off each one, and the agreed cutover window. |
Which plugins and site settings do not transfer
Plugins that MoodleCloud did not allow have to be sourced, version-checked and vetted before they go anywhere near the new site. MoodleCloud restricts which plugins a hosted site can run, so any plugin you relied on there is new work on your own server. Confirm the exact plugin version that matches your target Moodle release, not the version you last saw on the hosted site. The Moodle 5.1 release notes list the minimum PHP and database versions, and the Moodle 5.3 release notes do the same for that release, so check both the core requirements and each plugin's declared compatibility before installing. Treat every third-party plugin as code you now own: review its source, its maintainer activity and its web service or external calls, and test it in a staging copy with a restored backup before production.
Site configuration and integrations are rebuilt, not copied. Course backups and user exports carry content and accounts, but they do not carry the settings that make the site work. Plan to recreate theme files and theme selection, authentication settings and field mappings, enrolment methods, scheduled tasks, the cron job on your server, outbound and inbound integrations, and API tokens, which are issued per site and need to be reissued. Some user passwords may also need resetting depending on how the source site stored them, so confirm with MoodleCloud what it exports and what users must do on first sign-in. On the server, from Moodle 5.1 the web server document root must point to the /public directory rather than the main Moodle folder, or the site may show directory listings or errors. Also check theme choices: Moodle 5.3 removes the Classic theme from core, so any site still using it needs a supported theme chosen and tested before the upgrade path is taken.
What usually goes wrong in a MoodleCloud move and how to prevent it
Most MoodleCloud moves fail in the same few places: data that restores but no longer means the same thing, identities that split or collide, and links, plugins and mail settings that behave differently on the new host. Each card below names the risk and the control that catches it before learners or auditors do.
Grades and completion drift after restore
A course backup restores activities, but gradebook totals, completion rules and conditional access can resolve differently when users, groups or the time zone change. Run a restore rehearsal on a copy of one representative course, then compare grade items, completion states and quiz attempt counts against the MoodleCloud export for the same users. Record every difference before the cutover decision is made.
Moodle 5.1 notesDuplicate or lost accounts at import
Exports from MoodleCloud can create second accounts when the new site matches users on username, email or an authentication plugin with a different identifier, and passwords do not carry over for most sign-in methods. Agree the matching key in writing, run a user matching check on a sample that includes shared email addresses and renamed staff, and plan how existing learners reset access on day one.
Broken file and content links
Course pages, labels and H5P content often point to MoodleCloud addresses, and file references can fail if the wwwroot value or the file area is not updated. Use the database search and replace step for the old site address, then run a link checker across every course and fix anything that still points at the old host. Keep a list of external links that you have checked by hand.
Restore errors from missing plugins
MoodleCloud limits which third-party plugins can be installed, so a backup may reference activity types, blocks or reports that your new site does not yet have. Inventory every plugin used in the source courses before the restore, install matching versions on the target, and test the restore against a staging copy. Treat any plugin you cannot vet as a rebuild item, not a restore assumption.
Time zone and language mismatches
Due dates, availability windows and report timestamps can shift by hours if the server time zone, the site default and user profiles disagree after the move. Set the site time zone and default language explicitly, confirm a sample of deadlines against the original, and check that language packs needed by your learners are installed before users log in.
Mail that stops at the new host
Notifications, password resets and enrolment emails depend on the outbound mail settings of the new server, and MoodleCloud handled that for you. Configure the mail transport, sending domain records and a test account, then send each standard notification type to a monitored mailbox. Confirm bounce handling and a sending limit before users are invited to the new site.
Retention gaps after MoodleCloud closes
Once MoodleCloud is switched off, the only copy of older backups, logs and user records may be the one you did not download. Make a written retention decision for each data class (course backups, grade history, logs, personal data), decide which records must move and which will be deleted, and keep a verified archive with a named owner before the subscription ends.
Questions buyers ask before moving from MoodleCloud
What drives the cost of moving from MoodleCloud to self-hosted Moodle?
The cost follows the written scope, and the main drivers are the number of courses and the volume of user data, the number of plugins and custom code that must be rebuilt or vetted, the identity and HR integrations that must be wired up, and the infrastructure you provision yourself. Some costs are one-time, such as the migration, testing and cutover. Others recur, such as hosting, backups, patching and upgrades across Moodle's release cycle. Ask any partner to split the quote into these parts and to state which infrastructure costs you carry directly. DeployOpen does not publish a price list, and a quote follows from a written scope.
How long does a move from MoodleCloud take?
Duration depends mostly on how many courses and users you have, how many integrations must work at cutover, and whether any plugins need rebuilding. A small site with few plugins moves faster than a large site with single sign-on, HR sync and custom themes. Moodle's own release cadence also matters: major releases arrive in April and October, and minor point releases every two months, so the target version and the timing of your cutover should be planned together. DeployOpen agrees timelines in writing as part of a fixed-scope engagement, so ask for a schedule tied to your course count and integration list.
What does the move need from our own team?
Plan for four roles to be filled by named people. Course owners confirm which courses, enrolments and grades must come across and sign off on how they look after the move. Administrators handle hosting access, database and file storage, and the Moodle admin settings. An identity contact owns single sign-on or directory details, including how usernames and attributes map. A sign-off owner accepts the cutover, decides on any data that is not carried across, and approves the retirement of the MoodleCloud site. Agree these roles and their time commitments before work starts, because delays in identity or sign-off decisions often hold up cutover more than technical work does.
Can our internal team do the migration alone?
Often yes, if the site is small, uses only core features and has someone with Linux, web server, PHP and database administration experience. The work includes standing up a Moodle server that matches a supported version, restoring course backups, importing users, configuring authentication and cron, and testing before cutover. It becomes harder when you need custom plugins, theme work, SAML or HR-driven enrolment, or a tight cutover window. Compare the in-house effort against the written scope from a partner, including testing and the first upgrade. Your team should keep ownership of the running system either way.
Does all course data transfer from MoodleCloud?
Not automatically, and you should confirm the exact export path with Moodle before planning. Course content is normally moved as course backups and restored into your own site, while user accounts and enrolments can be exported and re-imported. Items that often need rebuilding include plugins MoodleCloud did not allow, custom themes, external integrations, some grade configurations and anything tied to the MoodleCloud environment. Build a list of what each course uses, test a restore of a representative sample, and record what did not carry across so the sign-off owner accepts it knowingly.
What happens to our MoodleCloud accounts and data during cutover?
Plan the cutover so the MoodleCloud site stays readable until the new site has been checked by course owners and the sign-off owner. Freeze course edits or agree a final copy point, take a last export and backup, run the final user and enrolment import, switch the DNS or links to the new site, and then keep the old site available for a defined period. Decide with Moodle how and when the MoodleCloud subscription and its data are closed, and confirm how long data remains available after cancellation. Write these dates into the cutover plan so nobody is left without access.
What should we confirm with Moodle about export access before we start?
Confirm with Moodle what export and backup options your MoodleCloud plan provides, including whether you can download full course backups, user lists, logs and files, and in what formats. Ask whether there are limits on file size or the number of backups, how long exports remain available, and whether any plugin data can be exported. Check which Moodle version your MoodleCloud site runs, because the target self-hosted version must be compatible with the backup and with the database and PHP versions you plan to use. Get these answers in writing before you commit to a schedule. The Moodle releases page is the place to check version support dates.
How the parts of the move fit together
The move starts in the MoodleCloud site, where course backups, a user export and a plugin inventory are taken out of the managed service. Those files cross the trust boundary into a staging self-hosted Moodle, where the team restores a pilot set of courses and imports users. Authentication is then configured and checked before a parallel run, cutover and decommissioning. Check at each hand-off that the data copied matches what the managed service held, and that every plugin in the inventory has an owner.
Data leaves the managed service once, then moves through staging, pilot and cutover in your infrastructure.
How DeployOpen runs the move on infrastructure you control
DeployOpen plans and implements the self-hosted Moodle inside your own cloud account, data center or network, so the course backups, user data and plugin code never leave infrastructure your team controls. The first step is a written scope that names the source MoodleCloud site, the target Moodle version, the database engine, the web server layout, the plugins to be carried over and the cutover window. Nothing is built until you have reviewed and signed that scope. Most engagements of this kind are fixed-scope, with deliverables and timelines agreed in writing before work starts, so the quote follows directly from the scope document rather than from an open-ended estimate.
The inventory comes before any restore. DeployOpen works through the MoodleCloud site's courses, enrolments, authentication method, custom themes, third-party plugins and any web service tokens, and records which of them your new Moodle must reproduce. The team then runs pilot restores of a representative set of course backups into a staging instance on the target version, checking activities, question banks, gradebook settings, groups and file references. Each pilot produces a list of items that restored cleanly, items that need manual rework and items that do not transfer. Confirm with your own team which MoodleCloud features your courses depend on, and confirm the target release's server requirements against the Moodle release notes before choosing hosts.
Ongoing support, upgrades and continuous testing are available as retainers once the new site is live. A retainer covers routine Moodle point releases, plugin compatibility checks and backup verification, which matters because a self-hosted site takes on patching and security work that MoodleCloud handled for you. Ask any partner, DeployOpen included, to state in the quote who holds administrator access after handover, who applies security updates, how restores are tested and what the handover document contains. Those answers determine whether the move reduces your dependency on a hosted provider or simply moves the operational burden to a different team.
How DeployOpen works on this
DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. For a MoodleCloud move, that means agreeing the course, user and plugin scope in writing first, then building and testing the new site in your environment before any cutover.
How we scope
- Inventory every course, user group, enrolment method and plugin in your current MoodleCloud site before work starts
- Confirm which MoodleCloud features and third-party plugins your target hosting can run, and which Moodle version you will install
- Agree in writing what does not transfer, such as hosted-only settings, and how each gap will be rebuilt or accepted
- Engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work begins
How we build
- Install the target Moodle version on the server stack and database engine you approve, matching the requirements in the release notes
- Export course backups and user data from MoodleCloud, restore them into the new site and check course content, enrolments and grades
- Install and test each plugin that MoodleCloud did not allow, recording its version and any configuration it needs
- Test the restored site with pilot users, including sign-in, grade reports and scheduled tasks, before cutover
How we hand over
- Document the build, the migration steps, the rollback path and the final cutover checklist for your own team
- Provide a record of what was moved, what was rebuilt by hand and what was left behind, with the reasons
- Walk your administrators through backups, cron, upgrades and plugin updates on the new self-hosted site
- Deliver the written runbook and configuration notes into your own document store and access model
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing
- Retainers can cover planned Moodle minor point releases and major upgrades in the infrastructure you control
- Ask for a quote that separates one-time migration work from recurring support, so each cost component is visible
- Confirm with DeployOpen and your hosting provider who owns backups, monitoring and incident response after go-live

