Migrate from Mattermost Cloud to self-hosted Mattermost: what the move involves
Moving a Mattermost Cloud workspace into your own infrastructure is a documented path. The sequence is: install the target self-hosted server first, export the workspace with mmctl export commands, upload the export and import it on the new server, then re-point authentication so users sign in to the self-hosted instance. For large exports, the export can be written to Amazon S3 instead of being downloaded to a workstation. Effort depends on workspace size, the number and type of integrations in use, and how identity is set up today, so the work should be scoped against those three factors rather than estimated from the team's message volume alone.
The target server must be ready before any export starts. That means a running self-hosted Mattermost on the version you intend to keep, a PostgreSQL database, file storage, a reverse proxy with TLS, and outbound network paths for any integrations you will re-point. Decide early which Mattermost plan and identity provider the new server will use, because SSO and AD/LDAP sync are configured on the target, not carried over from Cloud. Confirm the server version and plan features on the target before anyone runs an export, since a mismatch between what you export and what you can run is the most expensive problem to fix late.
No duration figures were supplied for this path, so do not plan around a number from this page. Ask any provider for a written scope that states the workspace data to be moved, the export and import steps they will run, the integrations that will be re-pointed or rebuilt, the test import they will perform against a copy, the cutover window and who performs each step. Ask who is responsible for the identity provider changes and for user communication, because those often take longer than the data move itself. Check the scope against the documented procedure in the Mattermost docs: Migrate between self-hosted and Cloud and confirm with Mattermost which Cloud data types and export options apply to your workspace before work is committed.
Which Cloud workspace data maps to self-hosted Mattermost and what needs review
This table compares the main elements of a Mattermost Cloud workspace with their self-hosted counterparts and notes what needs review before cutover. Rows marked for confirmation describe areas the export documentation does not settle, so check them against the export guide and your target configuration before you plan the import.
| Workspace element | Self-hosted handling | Migration note |
|---|---|---|
| Teams | Exported with mmctl export and imported into the target server | Confirm team names, settings and membership after import on a trial run |
| Channels | Exported with mmctl export and imported into the target server | Check public and private channel membership and archived channels against the source |
| Users | Exported and imported as part of the workspace data | Verify usernames, email addresses and roles, since identity is re-pointed separately |
| Message history | Exported and imported through the same export and import path | Size the export and confirm the import completes on the target before cutover |
| File attachments | Exported with the workspace, or written to Amazon S3 for large exports | Use S3 for large exports and confirm the target file store can read the files |
| Custom emoji | Confirm against the export documentation | Test that custom emoji render after import, since the export coverage should be verified |
| Integrations and webhooks | Confirm against the export documentation and target configuration | Expect to reconfigure or re-create webhooks and integrations on the self-hosted server |
| Plugins and plugin data | Confirm against the export documentation and installed plugin versions | Install matching plugins on the target server and test their data after import |
| SSO configuration | Not carried over by the workspace export; configured on the target server | Re-point authentication to your identity provider and test sign-in before cutover |
Which mmctl export paths and storage options the migration uses
The direct download path keeps the export on a route you already control. The export is created with mmctl against the Cloud workspace, and the resulting archive is downloaded to an administrator workstation or staging host before it is copied to the self-hosted server. The Mattermost docs on migrating between self-hosted and Cloud describe the export commands, so confirm the exact subcommands and flags for your version before you schedule the work.
- Fewest moving parts: The transfer needs no object storage bucket, bucket policy or extra cloud credentials beyond the Mattermost access the export already uses.
- Best for modest archives: This path fits exports that transfer comfortably over your network and fit on a staging disk with room to spare.
- Staging capacity: The download is a full copy, so confirm the staging host can hold the archive and its attachments at the same time.
- Interrupted transfers: A partial file fails at import, so compare file size and checksum on arrival and plan a repeat download if they differ.
- Transfer policy: Confirm that the workstation, jump host or transfer tool used for the copy meets your data handling rules, since the archive holds full message history.
Before uploading, check the archive's size and integrity and confirm the download route meets your data transfer policy.
For large exports, the Cloud migration documentation describes writing the export to Amazon S3 instead of downloading it. The archive then moves between cloud storage and your target environment without passing through an administrator's workstation. This path adds setup work on the storage side, and the export identity, bucket and read path all need to be agreed before the migration window opens.
- Large archives: Writing to S3 avoids copying a very large file through a single workstation or staging host.
- Bucket setup: Create the bucket in a region your data residency policy allows, with encryption enabled and access limited to the export identity and the target server.
- Write permissions: Confirm with Mattermost which identity and permissions the Cloud export uses to write to your bucket, and revoke or rotate that access after the import.
- Read access for the target: The self-hosted server or staging host must be able to read the object, so confirm the grant method with Mattermost and test it with a small object first.
- Retention of the export object: The object holds full message history and attachments, so set a lifecycle rule that deletes it after the import is verified.
Before cutover, test the bucket permissions and the read path from the target network, because a denied read discovered during the migration window is the most common cause of delay.
Whichever export path you choose, the self-hosted server is the reader of the file. The documented sequence installs Mattermost on the target server first, then uploads the export and imports it. The target therefore needs the server running, an administrator tool connection it can use for the upload and import steps, and enough storage for both the archive and the attachments that the import writes to the file store.
- Server first: Install and verify the self-hosted server before any export starts, so the import has a working target and the database schema is in place.
- mmctl connection: Configure
mmctlon the target with the server URL and an administrator account, and confirm it can reach the server from the host that runs the upload. - Disk capacity: Plan space for the uploaded archive, the extracted data and the attachments, since all three exist on the target during import.
- File storage configuration: Confirm the target's file store is configured and writable before import, because attachments are written there.
- Network reach to S3: If you use the S3 path, the target or staging host must reach the bucket endpoint through your egress controls.
Before starting, run a trial import on a non-production target to confirm that the server, tool versions and storage settings work together.
The right export path depends on the size of the workspace, the transfer routes your policies allow and who controls the credentials at each end. Teams usually decide on the path during planning, because the choice changes the storage setup, the approvals needed and the time required for a trial run. Neither path changes what the export contains, so the decision is about logistics and control.
- Data volume: Estimate the archive size from the Cloud workspace with the Mattermost team, then match it to the path your transfer route can carry.
- Transfer policy: Check whether your security team allows archives to pass through workstations, and whether a cloud bucket in your account is approved for message data.
- Credential ownership: Decide who creates the export identity, who holds the bucket permissions and who revokes them after import.
- Trial runs: Use the same path in a trial run that you plan for cutover, so the timings and permissions you test are the ones you will use.
- Written scope: Record the chosen path, the storage locations and the cleanup steps in the migration plan before the cutover window.
Confirm the chosen path with Mattermost for your Cloud plan and server version before committing to a cutover date.
How the cutover sequence runs from target install to decommission
The sequence moves a Mattermost Cloud workspace onto infrastructure you control in an order that proves each piece before users depend on it. Each step closes with a check, so the final freeze window carries only the data that changed since the trial run.
Inventory the Cloud workspace and its dependencies
Record teams, channels, users, custom emoji, bots, webhooks, slash commands, plugins, file volume and every integration that posts into or reads from the workspace. Identify which identity provider signs users in today and which SSO settings, email settings and admin roles must be recreated. DeployOpen typically runs this with your workspace owners and security team, and the output is a written inventory that marks each item as migrated, rebuilt or retired. Confirm with Mattermost which data types the export covers for your workspace version, because some objects, such as webhooks and deleted content, are not carried by the bulk export.
Install and configure the target self-hosted server
Build the self-hosted Mattermost server first, with the matching server version, PostgreSQL, file storage, reverse proxy and TLS certificates in place. Confirm the server starts, the System Console loads, email delivery works and the proxy passes WebSocket traffic. Storage choice matters early: confirm whether the file store will be local disk, S3-compatible storage or another supported option, because moving files later is a separate project. The step is done when a test user can sign in, send a message, upload a file and receive a notification over the proxied connection.
Run a trial export and import on a copy
Export the Cloud workspace with mmctl, transfer the export to the target and import it into a separate test instance or a non-production database copy. Check counts of teams, channels, users and posts against the Cloud workspace, then sample threads, attachments and permissions. Record every error and every object that did not arrive, and decide whether each gap is accepted or needs a manual step. The step is done when a repeat trial produces the same results and the gap list is signed off by the workspace owner.
Plan the parallel run and user communication
Agree with the business owners how long the Cloud and self-hosted workspaces run side by side, which team starts first and how users are told where to sign in. Prepare a notice covering the new URL, sign-in method, client app settings, known gaps and the date of the freeze window. Decide who can post during the freeze and how integrations will be paused or repointed. The timing of this step, and of every step here, depends on your environment and must be agreed in writing before work starts. The output is an approved cutover plan with named owners and a rollback decision point.
Perform the final export and import in a freeze window
Stop new posting in the Cloud workspace for the agreed window, run the final mmctl export and import it into the production target, and repeat the count checks from the trial. Where large exports are involved, the export can be written to Amazon S3 instead of downloaded, which changes how the file moves between environments. Do not reopen the Cloud workspace for writes until the checks pass or the rollback point is reached. The step is done when the production counts match the agreed tolerance and the freeze is lifted for the target.
Re-point authentication to the self-hosted identity provider
Configure the self-hosted server with your identity provider, such as SAML or OIDC, and confirm that users map to the same accounts they used in Cloud. Check that user identifiers, email addresses and team memberships line up, and that MFA and session rules meet your policy. Plan how existing sessions and client apps re-authenticate. SSO features depend on the plan level you hold, so confirm entitlements with Mattermost before this step. The step is done when a test account from each group signs in through the new provider and no account resolves to a duplicate user.
Validate users and integrations
Ask a set of pilot users from each team to sign in, post, search, use files and open their notification settings. Repoint or rebuild each integration, bot and webhook against the new URL and token, and confirm that each one posts and receives events. Compare results with the inventory from the first step and close each gap with an owner and a date. The step is done when the pilot sign-off list is complete and the open issues list contains only accepted items.
Decommission the Cloud workspace
After the agreed post-cutover period, retain a final archive of the Cloud export and the target backups, then remove the Cloud workspace access for users and integrations and close the subscription through the contract terms you negotiated. Record where the archive is stored, who can restore it and how long it is kept under your retention policy. The step is done when Cloud access is removed, the archive is verified by a restore test on the self-hosted side, and the decommission record is signed by the system owner.
How data and sign-in move from Mattermost Cloud to your infrastructure
The diagram starts with the Mattermost Cloud workspace, where mmctl export commands produce the export. The export either downloads to an administrator workstation or is written to Amazon S3, and both paths end at the self-hosted server inside your boundary, where the import runs. Sign-in is separate work: the identity provider connection must be re-pointed to the self-hosted server's URL and settings. Check that the target server is installed and reachable before exporting, and confirm the S3 path and identity configuration in your own environment.
Export paths from Mattermost Cloud into the self-hosted server, plus the identity re-pointing.
What drives the cost and duration of a Cloud to self-hosted move
This table lists the factors that raise or lower the effort of moving a Mattermost Cloud workspace into your own infrastructure, and what to ask for in a quote. Read each row as a lever: the left column names the driver, the middle column explains which way it pushes effort, and the right column gives the question to put to a partner or your own team. The main takeaway is that most of the effort comes from the size of the data, the number of trial runs and the identity and plan decisions made before cutover, not from the install itself.
| Driver | Effect on cost and duration | What to ask for in a quote |
|---|---|---|
| Workspace size and history volume | Larger teams and longer message history produce bigger exports, longer import runs and more validation. Pruning out-of-scope channels before export reduces effort. | Estimated export size, the data types in scope, and whether history will be trimmed before import |
| Attachment volume and S3 use | Many files add transfer time and storage work. Writing large exports to Amazon S3 instead of downloading them changes how files move, and the target file store must be ready to receive them. | How attachments will be transferred, which storage backend the target uses, and who verifies file counts after import |
| Integrations and plugins | Each webhook, slash command, bot or plugin must be inspected, because the export does not carry every integration and some must be rebuilt or reconfigured on the new server. | An inventory of integrations and plugins, which ones are rebuilt, and which are retired |
| Identity provider re-pointing | Moving SSO and AD/LDAP user sync to your own identity provider means new configuration, test logins and account mapping. SSO and user sync are included from the Professional plan per the pricing page. | Confirmation of the identity provider, the Mattermost plan needed for it, and the test plan for sign-in and deprovisioning |
| Target infrastructure readiness | A target server, PostgreSQL database, proxy, certificates and backups that are not yet in place add setup and review time before any data moves. | Which infrastructure is provided by your team and which by the partner, and the readiness checklist used before the first import |
| Number of trial runs | Each trial import against a copy of the data repeats the export, import and validation steps. Planning more trial runs adds effort but lowers cutover risk. | How many trial runs are included, what each one checks, and who signs off the results |
| Parallel-run length | Keeping Cloud and self-hosted running side by side means two workspaces to support, user communication and reconciliation of messages sent during the overlap. | The planned overlap window, who supports each system during it, and how late changes are reconciled |
| Compliance evidence needs | Records retention, access logs and change records for the move add documentation work. DeployOpen prepares evidence for assessments but does not issue audit reports. | Which evidence the move must produce, the format required, and who reviews it |
| High availability requirement | High availability clustering needs redundant application servers, database servers, load balancers and shared storage. It is available only on Enterprise and Enterprise Advanced plans, so the target plan drives scope. | Confirmation of the Mattermost plan, whether a cluster is required at go-live, and the shared storage design |
What usually goes wrong in a Mattermost Cloud migration and how to prevent it
Most failed Cloud-to-self-hosted moves come from a short list of gaps: the target was not ready, the data was not checked, or the people and integrations were not switched over. Each card below names one failure and the step that prevents it.
Target server installed late or misconfigured
The documented path installs Mattermost on the target server before any export is run, so the import has somewhere correct to land. Teams that start the export first often discover missing PostgreSQL settings, proxy rules or file storage only when the import fails. Confirm the server version matches the export source, that the database is reachable, and that a test login works before the export starts.
Cloud migration docsLocal disk file storage in a cluster
Mattermost high availability clusters need shared file storage on Amazon S3, an S3-compatible service or NAS mounted on every node. Local file system storage will not work correctly in a cluster and risks corrupting files. Decide the file store before importing, because attachments from the export depend on it and moving files later is a separate project.
Users not re-pointed to the new identity provider
Cloud workspaces often sign users in through an identity provider configured for the Cloud tenant. If the self-hosted server keeps the old SSO settings, users cannot sign in, or they create duplicate accounts under a different login method. Plan the SAML or OIDC configuration, the redirect URLs and the account matching rule before cutover, and test with a pilot group.
Integrations and webhooks left behind
Integrations are not carried over automatically in the way team members expect. Incoming and outgoing webhooks, slash commands and bot tokens tied to the Cloud workspace stop working when that workspace is retired. Build an inventory from each channel and each admin, then recreate and retest every integration against the self-hosted URL and token.
No trial run before cutover
A first import into the production server leaves no safe way back if the mapping of teams, channels or users is wrong. Run the full export and import against a scratch copy of the target, then compare user counts, channel membership and a sample of message history. Use the results to set the real cutover window and the order of steps.
Export not validated before retirement
Teams often retire the Cloud workspace once the import finishes without checking what arrived. Attachments, deleted-object handling, and per-channel history can differ from what users expect. Keep the Cloud workspace available until the import has been reviewed against an agreed checklist, and record the export files and checksums as evidence.
Questions buyers ask before moving a Mattermost Cloud workspace in-house
What does moving a Mattermost Cloud workspace in-house cost?
The cost is the sum of infrastructure you pay for, the internal time your team spends, and any partner fixed-scope work you buy. Infrastructure is recurring: servers, PostgreSQL, storage, backups and network capacity in your own cloud account or data center. Internal staff time and any partner work are mostly one-time, although ongoing operation is recurring. Mattermost licenses are sold as prepaid annual subscriptions based on seat licenses, and its pricing page lists no public prices, so ask Mattermost sales for the license terms that fit your plan. Costs rise with user count, data volume, attachment size, number of environments and how many integrations need rework. Ask any partner for a quote built from a written scope that lists each deliverable and what the client provides.
How long does a Cloud to self-hosted Mattermost move take?
Duration depends on the size of the workspace, the size of the export, how ready your target environment is and how many approval gates your organization runs. The largest variables are the time to install and verify the target server, the export and import runs (which grow with message history and attachments), and the validation and sign-off window before users are moved. Teams that prepare the infrastructure, identity configuration and network access before the cutover date usually shorten the window. Ask for a timeline tied to named milestones in the written scope rather than a single number, and confirm the duration of each export and import run against a test copy of your own data.
What must our internal team provide before the migration starts?
Your team provides the target infrastructure, administrative access and decisions that the migration cannot make on its own. In practice that means:
- A target server or cluster with PostgreSQL, file storage, DNS, TLS certificates and outbound network paths your security team has approved.
- An administrator for your identity provider who can create the Mattermost application, set attribute mappings and confirm test logins.
- Named owners for sign-off on data scope, user mapping, cutover timing and rollback.
- Access to Amazon S3 or an S3-compatible service if large exports will use it.
Confirm each item with the owner before the work plan is signed.
Can our team run the move alone using the documented steps?
A capable platform team can follow the documented steps alone, provided it has Linux, PostgreSQL and network skills, administrator rights in the target environment and time for test runs. The documented path is to install Mattermost on the target server first, export from the Cloud workspace with mmctl, upload and import the export, then re-point authentication. The steps are not difficult individually, but the risk sits in validation: confirming data completeness, user mapping, file access and login behavior for every user group. Decide early whether your team will own that validation or buy it as part of a fixed-scope engagement.
Do large exports need Amazon S3 or another object store?
Large exports can be written to Amazon S3 instead of being downloaded to a workstation or administration host, which avoids moving very large archives through a single machine. The Mattermost documentation for Cloud and self-hosted migration describes this option. Whether you need it depends on export size, available disk space on the administration host and your bandwidth to the target environment. If you use S3, confirm the bucket, access policy, encryption and lifecycle rules with your security team, and remove temporary export data once the import is verified. Use the Mattermost migration documentation as the next read for the exact commands.
What happens to integrations, bots and webhooks during the move?
Integrations do not follow the data automatically. Incoming and outgoing webhooks, slash commands, bots, OAuth applications and plugin configuration need to be inventoried, recreated or re-authorized on the self-hosted server, and their endpoints and secrets updated. Plan this as a separate work item with the owners of each integration, because a missed webhook can silently stop alerts or deployment notices after cutover. Mattermost's migration guidance for other sources states plainly that integrations are not carried over in some export paths, so verify exactly what your export includes before assuming anything moves.
Do we need a parallel run before switching users over?
A parallel run is worth planning for most production workspaces, because it lets your team check login, notifications, file access and integrations on the self-hosted server while the Cloud workspace remains the system of record. The cost of a parallel run is mainly extra infrastructure time and coordination, and the cost of skipping it is discovering gaps after users have changed their habits. Decide the length of the parallel period, what counts as a passed check and how messages written during the window will be reconciled or re-imported. Ask any partner to show how the test runs and rollback steps are written into the scope.
How DeployOpen scopes a Cloud to self-hosted move before work starts
DeployOpen plans and implements the self-hosted Mattermost server inside your own cloud accounts, data center or air-gapped network, and most engagements of this kind are fixed-scope, with deliverables and timelines agreed in writing before any export runs. The scoping stage exists to answer the questions that decide the shape of the move: which workspaces, teams and channels come across, where the target server will run, how users will sign in afterward, and which compliance obligations apply to the imported history. Nothing about the cutover should be decided by default, because the target platform, its database and its file store all have to be in place before an export can be imported.
We ask for four inputs. The first is a workspace inventory: teams, public and private channels, active and deactivated users, bots and integrations, and the approximate size of file attachments, since large exports are a planning factor and the documented route can write them to Amazon S3 instead of downloading them. The second is your identity provider, including whether you will use SAML, OIDC or AD/LDAP sync and which users must be matched to existing accounts before authentication is re-pointed. The third is storage: the target file store, the database host and the backup location. The fourth is your compliance requirements, such as retention rules, legal hold, FIPS 140-3 needs or air-gapped operation, because these determine the edition, the configuration and the evidence you will need afterward. Confirm the current edition and plan limits with Mattermost before you commit, since the Mattermost pricing page lists no public prices and directs buyers to contact sales.
The written scope should name each deliverable, the environment it lands in, the acceptance checks and the handover owner. A quote follows from that scope. DeployOpen does not publish a price list, so ask for a quote that lists the one-time work (environment build, trial export and import, cutover, verification and documentation) separately from recurring items such as subscription seats, hosting, backups and any retained support. Ask how a change in user count, attachment volume or identity design would alter the quote, and ask who holds the Mattermost subscription and the infrastructure accounts during and after the move.
How DeployOpen works on this
DeployOpen plans and carries out the move of a Mattermost Cloud workspace into infrastructure you control, from installing the target server through to re-pointing authentication. Each step is agreed in writing, tested against a copy of the data, and documented so your team can run the self-hosted instance afterwards.
How we scope
- Engagements are fixed-scope, with the migration steps, deliverables and timeline agreed in writing before work starts.
- We confirm the Mattermost Cloud workspace data in scope, including users, channels, message history, files and integrations that need separate handling.
- We agree the target server, database, file storage and identity provider with your team, and confirm the Mattermost version to install on the target.
How we build
- We install and configure the target self-hosted Mattermost server before any data is exported from the Cloud workspace.
- We run the mmctl export from Cloud, using Amazon S3 for large exports where the data volume calls for it, and verify the export is complete.
- We import into a test instance first, check users, channels and files, and then repeat the import against the production target.
How we hand over
- We re-point authentication to your identity provider and test sign-in for a representative set of users before cutover.
- We document the cutover runbook, the import steps, the verification checks and the rollback path so your team can repeat or audit them.
- We walk your administrators through the self-hosted server, its configuration and the evidence gathered during the migration.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the migration is complete.
- Upgrades across Mattermost monthly releases and Extended Support Releases can be planned and carried out under a retainer, with your team kept informed.
- Confirm with DeployOpen during scoping which post-migration support, backup and monitoring responsibilities sit with us and which stay with your team.

