Why consolidating Moodle sites takes longer than copying courses
Consolidating several departmental or regional Moodle sites into one instance is mostly a identity, role and plugin problem, not a course volume problem. Copying courses is the mechanical part, and it is the part teams tend to estimate first. The effort usually follows three things: matching the same people across sites that never agreed on a user record, designing one category and role model that every department accepts, and reconciling plugins that behave differently or exist on only one site. Before you commit to a plan, inventory each site's authentication method, user counts with duplicate email addresses, category tree, custom roles, enrolment methods and installed plugins, because these inventories set the scope.
Once that inventory is complete and agreed, the work can be scoped as a fixed set of deliverables, with the course restores, user loads, role changes and plugin decisions listed explicitly. Version alignment comes first. Every source site should be upgraded to a common Moodle release before any data moves, since backups restore only into compatible versions and each plugin must support the target release. Check the release support windows on the Moodle releases page and confirm with your own environment which version all sites can reach in a single planned step. Sites that are behind will need staged upgrades, which can add more work than the merge itself.
Agree the cost drivers with any partner in writing. Ask for the inventory findings, the identity matching rules, the role and category model, the plugin disposition list and the test plan for each site's courses, and make sure each item is tied to a named deliverable. Changes that arrive after the inventory, such as a new department joining or a plugin that one site cannot give up, are the usual reasons a fixed scope moves, so decide now who approves them and how they are priced.
What maps cleanly between Moodle sites and what needs rebuilding
This table compares common source-site elements with the single target Moodle instance and marks whether each one moves through backup and restore or core upload tools, or needs redesign. Use it as a first pass per site: the right column tells you what to inventory and confirm before any migration work starts.
| Element | Typical route into the target site | What to confirm per source site |
|---|---|---|
| Course content and activities | Course backup and restore per course, within a compatible Moodle version | Source Moodle version, activities used, and any third-party activity plugins that must exist on the target |
| User accounts | Core upload users tool from CSV, or a recurring sync through an authentication plugin | Username and email matching rules, duplicate accounts across sites, and which identifier the target will treat as unique |
| Categories and course structure | Rebuilt as a category tree in the target, then courses restored into the right category | Naming conventions, depth of nesting, and whether departments keep separate branding or reporting |
| Roles and role assignments | Recreated in the target; custom roles and capability overrides are not assumed to carry over | Custom roles, context-level assignments, and which local administrators need delegated rights |
| Enrolment methods | Manual and cohort enrolments can be recreated; external database or LDAP sync needs new configuration | Which enrolment plugins each site uses and whether memberships come from an HR or student information source |
| Authentication | Requires a new configuration on the target; passwords generally cannot be moved with accounts | Current sign-in methods per site and whether users will authenticate through one identity provider after cutover |
| Custom plugins and themes | Must be vetted, installed and tested against the target version; they may not exist or be needed | Plugin names, versions, and whether each site's theme or local code is still in use |
| Grades and completion | Grade history may restore with course backups; grade items and completion rules need checking after restore | Gradebook structure, grade exports kept for records, and completion criteria used for reporting |
Documented Moodle tools for moving courses and users
Moodle core provides several tools that move courses, users and identity data between sites. Some run once, while others can keep accounts in step with a directory or HR source over time. Choosing among them depends on what each source site holds and which version it runs.
Course backup and restore
A Moodle course backup file (.mbz) carries course structure, activities, resources, grade settings and, when selected, user data and question banks. Restore it into a course in the target site, or use the bulk restore option to load many backups from a category or file area. Check which user data and files each backup includes, because the default settings differ between backup stages. Confirm the source and target versions match or that the target is newer, since backups are not restored across arbitrary versions.
Moodle 5.1 notesUpload users tool
The upload users tool creates or updates accounts from a CSV file, with columns for username, authentication method, email and profile fields. It matches existing accounts by username, so duplicate usernames across regional sites need a rule before import. Use it for a one-time merge of user lists. It does not keep accounts synchronized afterward, so plan a separate route for ongoing changes.
Upload courses tool
The upload courses tool creates courses and assigns enrolments from CSV files, using short names and category IDs that must already exist in the target site. Build the category tree before loading courses, and map each source course to its new category and shortname. Shortnames must be unique in the combined site, so decide on a naming convention before the first file is prepared.
External database and LDAP sync
The external database and LDAP authentication and enrolment plugins keep accounts and course memberships synchronized from a source the organization already maintains. They run on a schedule rather than as a one-time load, so they suit a consolidated site that must track a directory or HR feed. Confirm which field identifies each user across sites, and test how deleted or suspended source records are handled before go-live.
Core auth pluginsCategory and role administration
Category design determines which teams can manage which courses, and role assignments at category level grant those rights to staff from each former site. Map each source site's category tree and custom roles before restoring courses, because roles defined on one site do not carry automatically into another. Review every assignment after the merge so former site administrators do not keep rights they no longer need.
Source version checks
Each source site must be checked for its exact Moodle version, installed plugins and database engine before any backup or export runs. Backups taken from a newer version may not restore into an older target, and plugins missing on the target will fail to restore their activities. Record the version of every site in the consolidation plan, and confirm the target release supports each source's starting point before the move.
Moodle releasesHow user matching and authentication changes shape the merge
Matching rules must be agreed before any bulk upload, because they decide whether one person becomes one account or two. Moodle identifies an existing account mainly by the username field, and the user upload tool and external enrolment sources will update or create accounts based on the key you choose. Two departmental sites may both hold a learner called the same name, or the same person under different usernames. Agree which field is authoritative for each population (staff, students, contractors, external tutors), whether email is unique in the target, and whether an external identifier such as a student number or HR employee ID is available and stable across the source sites. Ask each site owner for a count of duplicate candidates by each key before the run, and treat any email shared by different people as a manual review item rather than an automatic merge.
Authentication changes matter as much as matching, because each source site may sign users in differently. A site using manual accounts keeps passwords in its own database, while another may already sit behind LDAP, an external database, OAuth 2 or Shibboleth. Moodle core ships authentication plugins for all of these, and SAML 2.0 is usually added through the SAML2 Single sign on plugin (auth_saml2) maintained by Catalyst IT. Confirm with each source which plugin it uses, which attribute maps to the Moodle username, whether the identity provider releases email and the external identifier, and whether the plugin version you intend to run supports your target Moodle release. The Moodle plugins directory entry for auth_saml2 lists its compatible versions, and that is the place to verify them. Decide early whether users keep their current login method, move to the new provider, or run both during a transition, because each choice changes how old passwords and linked accounts behave after cutover.
How the consolidation runs from inventory to decommission
The sequence turns several separate Moodle sites into one instance in controlled stages, so each department's courses, users and sign-in move with evidence at every gate. Each phase ends with a check that the next one can rely on.
Inventory every site in detail
Record the Moodle version, database engine, installed plugins and their versions, themes, custom code, user counts, course categories, roles and enrolment methods for each site. The team responsible for each site confirms the inventory, and the platform team checks that the versions and plugins are compatible with the target release. The step is done when every site has a signed-off inventory and every plugin has a keep, replace or retire decision.
Design the target categories and roles
Decide how departments, regions or programs map to categories, how deep the hierarchy goes, and which roles and capabilities each group needs in the combined site. Review custom roles from the inventory and remove duplicates, so that similar roles from different sites are not carried over twice. The design is complete when the department owners approve a written category tree and role matrix, and the platform team confirms that it can be built on the target version.
Match identities across sites
Decide which identifier identifies a person across sites, such as an employee number, institutional email or directory account, and build a matching report that flags duplicate accounts, conflicting usernames and users who appear on several sites. Agree the rules for resolving each case with the owners of the identity source. The step is done when the match report has been reviewed and every exception has an owner and a decision.
Pilot the restore with one department
Choose one department with a moderate number of courses and restore its course backups into the target site, using the target category design. Check the restored courses, enrolments, grades, files and activity settings, and have the department's instructors review a sample. The pilot is complete when the team has a written list of defects, fixes for each one and an agreed set of checks that the full restore must pass.
Run the full restore and bulk user load
Load the remaining users through the bulk upload tools or an authentication source, then restore the remaining course backups in batches by department. Keep a log of each batch, including the backup file, target category and any failures, so that errors can be retried without duplicating courses. The step is done when record counts for users, courses and enrolments reconcile against the inventory, with any gaps explained.
Operate a parallel run
Keep the old sites open for a defined period while users, instructors and administrators use the consolidated site for real work. Track sign-in problems, missing enrolments, plugin gaps and support tickets, and compare grades or submissions where both systems are used. The parallel run ends when the open issues are either fixed or accepted by the owners, and the business sign-off is recorded in writing.
Cut over during a freeze window
Announce a freeze window in which no new courses, grades or enrolments are created on the old sites, then take a final backup, run the delta restore and switch the sign-in and routing to the consolidated site. Confirm that cron tasks, email and integrations point at the new instance before the freeze ends. The cutover is complete when the final reconciliation shows no unexpected differences and the old sites are set to read-only.
Decommission with archived backups
Take a final archived backup of each old site, including its database, moodledata and code, and store it under the retention rules agreed with the data owners. Remove the old sites from routing, DNS, monitoring and certificates, and record the date and location of each archive. The step is done when the archive contents have been verified by a restore test and the decommission record is signed off.
How source sites feed one consolidated Moodle
The diagram starts with each departmental or regional Moodle exporting course backups and user lists from its own network. Those files cross a trust boundary into a staging area where matching and mapping decide which accounts and courses merge, and where category and role design is settled before anything is written. A restore then fills one target instance, which signs users in through its chosen authentication plugin, while the original backups go to an archive store. Check at the boundary that exports are complete, that identifiers match, and that nothing is restored before the mapping is approved.
Source sites export through a staging step into one target Moodle, with old backups archived.
What drives the effort and cost of a consolidation
This table lists the factors that change how much work a Moodle consolidation takes, with what raises effort, what lowers it, and what to request in a written quote. Read each row against your own site inventory, since the largest driver is usually the one where your sites differ most from each other. No figures are given because effort depends on your environment, which should be measured before scoping.
| Driver | What raises effort | What lowers effort | What to request in a quote |
|---|---|---|---|
| Number and versions of source sites | Many sites on different Moodle versions that need staged upgrades before any restore | Sites already on a common recent version with a documented upgrade path | Upgrade path per source site, and whether restores are made into the target version directly |
| Plugin count and divergence | Local or community plugins present on one site only, or forked copies with local edits | A short shared plugin list with identical versions across sites | Plugin inventory per site, retire or port decision for each, and who tests them |
| Custom themes and local plugins | Theme overrides and local plugins that depend on site-specific data or old APIs | Standard Boost-based themes that need only settings and a logo | Estimate of each theme or local plugin to retire, port or rebuild, listed separately |
| Duplicate user volume | Many accounts that refer to the same person with different usernames or emails | Clear identity source such as HR or directory data that makes matching deterministic | Matching rules, duplicate handling, and the number of records each rule resolves by hand |
| Identity quality | Missing email, inconsistent names, or accounts created by several auth methods | Consistent identifiers across sites and an agreed system of record | Data cleansing scope and who signs off on merged or deleted accounts |
| Course backup size and content types | Large courses with embedded video, SCORM packages, or many files in moodledata | Smaller courses and content already stored in shared repositories | Backup size per site, content inventory, and restore test results on a sample |
| Category depth and structure | Deep, inconsistent category trees that must be mapped into one design | A category model agreed before restores begin | Target category map, and the rework needed to move courses into it |
| Roles and enrolment methods | Custom roles, local role assignments, and several enrolment methods per course | Few roles and one enrolment method per site | Role mapping table and a list of enrolment plugins to keep, change or retire |
| Authentication changes | Users who sign in with different methods on each site, needing a unified login | A single identity provider already in use by all sites | Authentication design, cutover plan for logins, and testing with each user group |
Questions buyers ask before consolidating Moodle sites
What drives the cost of consolidating several Moodle sites into one?
The cost follows the number of sites, the number of courses and users to move, and how much of each site is unique. Each site adds an inventory of plugins, themes, authentication settings and custom code that has to be compared before anything is merged. Cost is mostly one-time: discovery, mapping, test restores, cutover and hypercare. Recurring cost comes after go-live, in maintenance of the single instance, plugin updates and the Moodle release cycle. Ask any provider for a quote that lists discovery, data transfer, identity work, plugin decisions and retesting as separate lines, with the sites in scope named explicitly.
How long does a Moodle site consolidation take?
Duration depends on the number of sites, the total volume of course backups, how many user accounts must be matched across sites, and how many plugins need a decision. The longest stages are usually identity matching and the review of plugins that exist on only one site. Course restores at scale are often quick compared with the human review that follows them. Confirm the timeline by asking for a plan with stages and sign-off points, and check it against your own calendar, including academic terms and assessment periods when courses must not change during restore.
Can our own team consolidate Moodle sites without a partner?
Yes, if the team has Moodle administration experience, access to every source site and a clear test plan. Core tools handle much of the work: course backup and restore, the upload users tool and the upload courses tool. The skills that are harder to staff are category and role design across departments, reconciling duplicate accounts, and deciding which plugins to keep. Many teams split the work, keeping routine restores in-house and bringing in outside help for design and identity. Be honest about who will answer restore failures during the cutover week.
What does the consolidation need from our staff?
It needs named people, not just a project sponsor. Identity owners must confirm which directory is authoritative, how usernames and email addresses map, and what happens to accounts that exist on several sites. Course owners must confirm which courses are current, which can be archived and which must keep their grades and enrolments. Someone with authority must sign off the category structure, the role model and the cutover date. Plan for these people to review test restores, and agree in advance who approves the final cutover.
Do all the Moodle sites have to run the same version?
They do not have to match exactly before work starts, but they must all be upgraded to a version the target can accept. Moodle sets minimum starting versions for upgrades. For example, Moodle 5.1 requires sites to be on Moodle 4.2.3 or later, and Moodle 5.3 requires Moodle 4.4 or later. Older sites may need staged upgrades before any course backup can be restored cleanly. Choose the target release first, then check each source site against its upgrade requirements, PHP version and database engine. Confirm the current support windows in the Moodle releases documentation before you pick a target.
What happens to the old Moodle sites after cutover?
Old sites should be kept read-only for a defined period, then archived and decommissioned under a written retention plan. Keep a verified full backup of each site, including its database and file store, so that records can be checked after cutover. Redirect old addresses to the new instance and tell users when access ends. Decide who holds the archives, how long they are kept and how they are deleted. Your records, privacy and retention policies should drive these dates, so involve your compliance lead before cutover.
What risks should we check before merging Moodle sites?
The main risks are duplicate or conflicting user accounts, plugins used on one site but missing from the target, authentication settings that differ between sites, and grades or enrolments that do not survive a restore. Check each site's installed plugins and whether they are compatible with the target version. Confirm how users sign in today, since a change in identity provider can lock people out. Ask for a pilot restore of one representative course and one site's users before any bulk run.
What usually goes wrong when Moodle sites are merged
Merging Moodle sites fails in predictable places: identities, content links, plugins, roles and cutover. Each risk below connects to a check you can run before any course or user moves into the target instance.
Duplicate accounts split learner history
The same person often exists on two sites under different usernames, emails or auth methods. After a merge, their grades and completions sit on two accounts and reports undercount them. Before import, match users on a stable key such as an institutional ID or verified email, and agree who wins when two records conflict. Run the matching report on a copy and review the mismatches by hand before any bulk upload.
Restored courses lose file and tool links
Course backups carry references to files, external tools and absolute URLs that point at the old site. Those links break silently after restore, and embedded media may fail to load. List every external tool, LTI endpoint and file host used on each source site, then test a restored course on staging and click through its resources. Plan a search and replace of the old wwwroot where links are stored in content.
Plugins missing on the target site
A course that depends on a local plugin, a custom block or a third-party activity will not restore or render correctly if the target lacks it. Inventory the installed plugins on every source site, including versions and whether each is still maintained. Decide per plugin whether to install it, replace it or retire the content that depends on it, and confirm the target runs the plugin version the content needs.
Roles that grant too much after merge
Merging sites usually means combining role assignments made at different levels, so a local manager on one site can end up with site-wide rights on the target. Map each source role to a target role and category context before assigning anything. Review every role assignment at category level, remove inherited rights that were never intended, and test with accounts from each department before go-live.
Version mismatches block restore
Moodle backups can only be restored into sites running a compatible version, and the target must meet the server and database requirements of its release. Confirm the lowest source version and the target release before planning the restore sequence. For example, Moodle 5.1 requires 64-bit PHP 8.2 or later and sites must be on Moodle 4.2.3 or later to upgrade. Upgrade older sources in stages where needed.
Moodle 5.1 notesCutover without a rollback path
Switching learners and staff to the consolidated site before the data is verified leaves no clean way back if grades or enrolments are wrong. Keep each source site read-only but intact until the target has passed reconciliation of users, enrolments, grades and course counts. Record the cutover steps and the exact point at which rollback stops being possible, and rehearse the rollback on a copy.
What to confirm before and after the single instance goes live
Before the new instance accepts users, confirm that category and role design matches the approved model, and then repeat that review within the first weeks of use. Check that each departmental or regional category has the intended course creators, teachers and managers, that no legacy site administrators kept elevated rights through a restore, and that course-level enrolments reflect the users matched during consolidation. Review the system-level role assignments separately from category roles, because a broad assignment made during a bulk operation is easy to miss. Confirm which plugins from each source site were installed on the target, and whether any were left out on purpose. Treat the plugin list as a decision record, not a leftover from migration.
Cron and scheduled tasks are the first operational check to automate. Confirm that the cron job runs on the new server at the interval your hosting design specifies, and that the Moodle task logs show scheduled tasks completing without repeated failures, including the tasks owned by plugins carried over from the old sites. Confirm the backup policy on the new instance before anyone relies on it: the scope of automated backups, where they are written, how long they are kept and who can restore them. A consolidated site concentrates courses from several sources, so a single failed backup job now affects every department. Check the target Moodle version against the Moodle releases page and the release notes for that version, since requirements for PHP, database engines and the web server document root can change between releases.
Retire the old site URLs in a controlled way. Where a source site's domain or path is still in use, decide whether to keep a redirect for a fixed period, and confirm that the redirect preserves course and activity links rather than sending everyone to the home page. Keep a record of which old URLs redirect and which were withdrawn, so support staff can answer questions from staff and learners. Once the old sites are frozen, archive their final backups and database exports under the organization's retention rules, record where each archive is stored, and set a date for deletion. Confirm with records management and legal counsel what retention applies to student and staff data, because the consolidation itself may have changed which copy is the authoritative one.
How DeployOpen scopes and delivers a Moodle consolidation
DeployOpen approaches consolidating several Moodle sites into one as a fixed-scope engagement agreed in writing before work starts. We inventory each site, design the target structure, build and test the merge in infrastructure you control, then hand over documentation and operating runbooks, with ongoing support available as a retainer.
How we scope
- Inventory each site's Moodle version, database, plugins, themes and custom code before any merge work is priced.
- Agree in writing which courses, categories, users and roles move, and which sites are retired.
- Record the authentication changes each source site needs, such as moving local accounts to a central identity provider.
- Confirm the target Moodle version and its server requirements against the release notes before planning the build.
How we build
- Design the target category tree and role model in a staging copy before any course is restored.
- Run course backup and restore in batches, logging each course and its outcome so failures can be retried.
- Match users across sites on agreed identifiers, and test the bulk upload and sync rules on a sample first.
- Reconcile plugins in use on each source site, replacing, retaining or dropping each one with a recorded decision.
How we hand over
- Deliver a written record of the target design, including categories, roles, authentication settings and plugin decisions.
- Provide reconciliation reports comparing course counts, enrolments and user accounts between source and target.
- Document the cutover sequence, redirects and rollback steps, and agree who signs off each stage with your team.
- Train your administrators on the operating procedures for the consolidated instance, including backups and cron.
How we support
- Offer ongoing support, upgrades and testing as a retainer after the consolidated site goes live.
- Plan the first post-merge Moodle upgrade against the release schedule and the minimum version rules.
- Review logs and reports for merge-related issues during an agreed period after cutover.
- Confirm with your team which support tasks stay internal and which are covered by the retainer.

