Move Mattermost to a new server with bulk export and import

Moving a proof of concept or legacy Mattermost to a production server is mostly a data and configuration exercise. This page explains what the bulk export carries, what it leaves behind, and how to plan the cutover.

On this page

Move Mattermost to a new server with bulk export and import: when the documented path fits

The documented path for moving a proof-of-concept or legacy Mattermost to a new production server is mmctl export create followed by a bulk import, and it fits well when your goal is to carry over teams, channels, posts, threads, reactions, users, memberships, preferences, custom emoji, roles and permission schemes. It does not move everything. Webhooks and deleted objects are not exported, so integrations and anything an administrator already removed must be recreated or accepted as lost. Run mmctl export create --attachments when you need files, since a plain export leaves attachments behind. Before you commit, confirm the export and import details against the current Mattermost bulk export documentation, because the exact data types and flags are what your scope depends on.

Effort depends less on the tooling than on four factors: how much message history and how many attachments you carry, how many integrations and bots you must rebuild by hand, whether your user identities and authentication settings map cleanly onto the new server, and how many trial runs you plan. A useful first step is a dry run against a copy of the source data on a non-production server, then a checklist of what did not arrive. Import is interruptible and idempotent, so a stopped run resumes where it stopped and rerunning the same file does not duplicate data, which makes repeated trials cheaper to plan. Your own team or a partner will mostly spend time on inventory, validation and sign-off, not on running commands. Ask any partner to put the trial count, verification steps and exclusions in a written scope before work starts.

Which Mattermost data types move through bulk export and which do not

This table compares the data types the bulk export writes to the JSONL file against those it leaves behind, with a migration note for each row. Read it before you plan the cutover, because anything in the right-hand column must be recreated or confirmed on the new server. The main takeaway is that a successful export does not mean the workspace is complete.

Data typeCarried by bulk exportMigration note
Teams and channelstrueConfirm team and channel names, privacy settings and headers survive the import on a trial server.
Posts and threadstrueCheck reply chains and timestamps on a sample channel, since threads depend on how the import file links them.
ReactionstrueSpot-check a few busy channels after import to confirm reactions attach to the right posts.
Users and preferencestrueUsers are exported, but sign-in is not. Re-point authentication on the new server before users log in.
MembershipstrueVerify team and channel membership counts against the source before you retire the old server.
Custom emojitrueEmoji images are exported with the data, so confirm they render after the attachments step.
Roles and permission schemestrueCompare System Console roles and schemes on both servers, because custom roles need review after import.
Bot userstrueBot accounts move as users, but their access tokens and integrations must be recreated on the new server.
File attachmentsnullOnly a full export created with the --attachments flag includes files. Without it, file links break after cutover.
WebhooksfalseNot exported. Recreate incoming and outgoing webhooks on the new server and update the systems that call them.
Deleted objectsfalseDeleted teams, channels and posts are not exported. Confirm with stakeholders whether any retained history must be preserved elsewhere.
Integrations and plugin configurationfalseRebuild or reconfigure integrations and plugin settings on the new server, and retest each one.

Documented export and import tools for a Mattermost-to-Mattermost move

A move between two self-hosted Mattermost servers rests on a small set of documented tools: one export command, one shared JSONL format and a few mmctl commands for upload and processing. The cards below cover what each piece does, where it stops, and what to check before you rely on it for the cutover.

Full export with mmctl export create

Run mmctl export create --attachments on the source server to produce a full export that includes file attachments alongside the data. Without the attachments option, the export carries message and user data but not the files that posts refer to. Confirm the export completes on the source, note where the output file is written, and check that the attachments archive is present before you move anything to the target.

Bulk export docs

The shared bulk import JSONL format

The export writes the same JSONL format that Mattermost bulk import reads, so one file describes teams, channels, posts, threads, reactions, users, memberships, roles, permission schemes and bot users. Each line is one record. Because the format is shared, you can review the export file before import and compare record counts on both sides. Treat the file as sensitive, since it contains user and message content.

Upload and process with mmctl

After the export file and attachments reach the target server, use mmctl to upload the file and then process it with the bulk import command. Confirm the exact subcommand names and flags against the version of mmctl you run on the target, because command syntax changes between releases. Plan for the import to run as a long job and check its progress rather than assuming a single quick run.

Bulk import docs

Resumable and repeatable imports

Mattermost documents bulk import as interruptible and idempotent. An interrupted import resumes where it stopped, and running the same file again imports the data only once. This makes trial runs and retries safer, but it does not remove the need to check results. Record each run, compare imported counts against the source, and confirm that a second pass adds nothing unexpected before you set the cutover date.

Shared format across migration paths

The JSONL format is also the target for other documented paths, including the Slack path, where a transformation tool converts the Slack export into a bulk import file, and the Rocket.Chat path. The format is not a general backup. Data that the format does not carry, such as webhooks and deleted objects, stays on the source, so the source server and its database backups remain the recovery point until the move is verified.

Slack migration docs

Export is not a backup

Treat the export as a source for the new server, not a replacement for backups. It omits webhooks and deleted objects, and it does not capture server configuration, plugin state, or the file store setup. Take a full database backup and a copy of the file store from the source before the export starts, and confirm that you can restore the source if the target fails verification.

How bulk import behaves when a run is interrupted or repeated

Mattermost bulk import is interruptible and idempotent: if a run stops partway, it resumes where it stopped, and running the same JSONL file again imports the data only once. For a move from a proof-of-concept or legacy server, this is what makes repeated trial runs practical. A team can load the export into a scratch Mattermost, find a problem in the transformed data or in a team mapping, correct the source, and run again without building up duplicate channels or posts from the earlier attempts. It also means a network drop or a server restart during a long import is a recoverable event, not a reason to start over from an empty database.

Idempotency does not prove the data is complete or correct. The import log shows that the tool processed lines in the file, not that every team, channel, membership and post landed where you expected. After each trial run, compare user, team and channel counts on the source and target, check memberships for a sample of channels, and open a set of threads, reactions and custom emoji by hand. Confirm that users who will sign in after cutover exist with the right roles, and that attachments referenced in the export resolve on the new server if you exported them with mmctl export create --attachments. Record these checks in a run log so each trial can be compared with the last.

Plan the trial runs around these checks rather than around the import finishing. Decide in advance who signs off on a run, which counts must match exactly, and which differences you will accept and document, such as deleted objects or webhooks that the export does not carry. Keep the source system read-only or frozen for the final pass, because an import against a moving source will not reconcile on its own. Confirm the exact import and export command behavior and any limits for your Mattermost version in the Mattermost bulk import documentation before you treat a rerun as safe.

How the move runs from inventory to decommission

This sequence moves a Mattermost workspace to a new production server through the documented bulk export and bulk import path, with a rehearsal on a non-production target, a controlled cutover, and checks that confirm the data arrived before the source is retired.

  1. Inventory teams, integrations, plugins and attachments

    The owning administrator lists every team, channel group, integration, webhook, slash command, plugin and file store on the source server, and records which of them the bulk export carries. Bulk export covers teams, channels, posts, threads, users, memberships, roles and permission schemes, but webhooks and deleted objects are not exported, so each webhook and integration gets a rebuild or reconfiguration entry in the plan. Done when the team owner signs off on a written inventory that lists what moves automatically and what must be recreated by hand.

  2. Install and configure the target server first

    The platform team installs the target Mattermost server with PostgreSQL, file storage and the reverse proxy in place, then applies the configuration the source used, such as authentication, email and retention settings. Confirm the target runs the same server version as the source export or a version your upgrade plan supports, and check the version against the Mattermost server releases page before importing. Done when the target starts cleanly, administrators can sign in, and the System Console settings match the approved configuration.

  3. Run a trial export and import into a non-production target

    The migration lead creates a full export with the mmctl export create command and the --attachments flag on the source, then loads it into a non-production target with mmctl import. Because bulk import is interruptible and idempotent, an interrupted run resumes where it stopped and a repeated file does not duplicate data, which makes repeated rehearsals safe. Record the run time, any errors and the import log for each attempt. Done when a rehearsal completes with no unexplained errors and the team has reviewed the results with the owners of each team.

  4. Verify users, channels, messages and files on the rehearsal target

    Testers compare the rehearsal target with the source by sampling users, team and channel membership, channel histories, threads, reactions, custom emoji and roles, and by opening a set of attachments to confirm they download. They also confirm that bot users and permission schemes arrived and that integrations were rebuilt from the inventory. Document each mismatch with its cause and fix it in the export or the target before the production run. Done when the sampled checks pass and the list of known gaps is accepted in writing by the business owners.

  5. Communicate the cutover and run in parallel

    Administrators tell users the date and time of the cutover, the new server address, how sign-in will work, and which integrations will be re-pointed. During the parallel period the source stays available for reference, and the team agrees with channel owners what content may be posted where, so messages written after the final export are visible and understood. Done when the communication has been sent, the affected integration owners have confirmed their changes, and the cutover window is approved.

  6. Freeze the source and take the final export

    At the agreed cutover point, the team stops new activity on the source as far as the organization's process allows, takes a backup of the source database and file store, and creates the final export with mmctl export create and the --attachments flag. The final export is imported into the production target, and the import is allowed to finish before anyone signs in to the new server. Done when the import completes, the log is archived with the backup, and the production target answers to the planned sign-in path.

  7. Verify production data and re-point integrations

    Run the same sampling checks used in the rehearsal against the production target, then re-point webhooks, bots, slash commands and other integrations to the new server and test each one. Confirm that user sign-in works through the configured identity provider and that attachments open for users in several teams. Done when every check in the verification list passes and the owners of each integration confirm it works on the new server.

  8. Decommission the source after the agreed retention period

    Once the production move is accepted, the organization keeps the source and its backups for a retention period it sets in its own records policy, then shuts down the old server and removes its data. The retention decision belongs to the data owner and compliance team, and it should be documented before cutover, because the source is the only complete copy of anything the export does not carry. Done when the retention period has ended, the owner approves removal, and the source is decommissioned with the removal recorded.

What drives the effort and duration of a Mattermost move

This table lists the factors that change how much work a move to a new Mattermost server takes, and whether each one is paid once or recurs. Read it as a checklist to bring to your own team or a partner before agreeing a written scope. The main takeaway is that data volume matters less than what sits outside the export, such as webhooks, authentication and the target architecture.

DriverWhy it changes effortOne-time or recurringWhat to ask for in a quote
Post and attachment volumeExport with --attachments takes longer and produces larger files to move, transform and verify on the target.One-timeEstimated export size, attachment storage location, and how transfer will be done.
Number of teams and channelsEach team, channel, membership and permission scheme must be checked after import, and more objects mean more verification.One-timeObject counts from the source and a verification sample per object type.
Webhooks and bot integrationsWebhooks are not exported, so each one must be recreated and tested against the new server. Bot users come across but their tokens may need reissuing.One-time to rebuild, then ongoing as integrations changeA list of every integration, owner, and the rebuild and test steps for each.
Deleted-object expectationsDeleted objects are not exported, so any retention or audit requirement for them must be settled before the move.One-time decision, with ongoing recordsWritten confirmation of what history the target must hold and where deleted-object records are kept.
Authentication re-pointingUsers must sign in to the new server through the identity provider configured there, which affects account matching and login testing.One-time setup, then ongoing user administrationIdentity provider configuration steps, user matching rules, and login test cases.
Target architectureA single server is simpler. A high availability cluster needs shared file storage on Amazon S3, an S3-compatible service or NAS mounted on each node, because local file system storage will not work correctly, and high availability is limited to the Enterprise and Enterprise Advanced plans.One-time build, then recurring infrastructure and licensingConfirmation of plan level, storage design, and which components the quote includes.
Number of trial runsEach trial import on a copy of the data adds time for loading, checking and fixing problems before the final run.One-timeThe number of trial runs included, and the process for repeating a failed one.
Verification effortSomeone must compare users, posts, files, memberships and permissions on the source and target, and users must confirm their own history.One-time, with a short recurring check after cutoverVerification checklist, sign-off owner, and who fixes data issues found.
Upgrade cadence on the targetMattermost releases a new server version in binary form on the 16th of each month, so a target chosen now will need regular upgrades.RecurringUpgrade plan, support window for the chosen version, and who runs and tests upgrades.

What usually goes wrong in a Mattermost bulk export and import

Most problems in a bulk export and import come from assumptions about what the file carries and how the target is set up. The cards below cover the gaps that appear most often, with a prevention step for each. Check them before the cutover window, not during it.

Assuming webhooks come across

The bulk export does not carry webhooks, and deleted objects are not exported either. If the legacy server relied on incoming or outgoing webhooks, those integrations will be silent on the new server until they are recreated and their endpoints and tokens are updated. Inventory every webhook, bot and slash command from the System Console and integration settings before export, record its owner and destination, and plan to rebuild each one on the target server.

Bulk export docs

Omitting the attachments flag

A plain export produces the JSONL data without the files that messages point to. Posts will import, but file links will break because the attachments are missing from the new file store. Create the export with the attachments option so the archive includes files, and confirm the attachment count on the source matches what you expect before you start the transfer.

Bulk export docs

Importing into a mismatched target

An import file produced by one server version and configuration may not match a target running a different version, with different teams, schemes or custom emoji already in place. Conflicts show up as failed or partial records and inconsistent roles. Install the target at the same server version you exported from, or confirm the upgrade path first, and start from a clean database with the expected teams and schemes defined before the import begins.

Users re-authenticating unexpectedly

Accounts in the export are tied to how users sign in on the source. If the target uses a different identity provider setup, users may face new login prompts, mismatched usernames or email addresses, or accounts that appear to be duplicates. Document the sign-in method on each side, confirm that the identity provider returns the same unique identifiers, and test one sign-in per method before announcing the cutover.

SAML SSO docs

Skipping trial runs

Running the real import for the first time on production data leaves little room to correct mapping problems. Import is interruptible and idempotent, so a repeat run is safe, but errors in channel names, user mappings or team structure still reach users. Run the full export and import against a copy of the target, review channel membership, message counts and attachment links, and record the results so the production run has a known baseline.

Overlooking unexported data

Beyond webhooks and deleted objects, anything outside the export scope must be rebuilt by hand: custom plugins, server configuration, and plugin data that the export does not describe. Build a written list of everything the legacy server does that the export does not cover, assign an owner to each item, and verify each one on the target before users return to the workspace.

Questions buyers ask before moving Mattermost to a new server

What does a Mattermost server move cost, and what drives the price?

The cost is mostly the people time needed to prepare the target server, run the export and import, verify the result and cut users over. The main components are the target server build (operating system, PostgreSQL, the Mattermost binary, file storage and network), the export and transformation work, one or more trial imports against a copy, the production cutover window, and verification of users, channels and attachments afterward. Costs go up when the source data is large, when attachments must move, when the team needs several trial runs, or when integrations must be rebuilt by hand. Setup is largely one-time, while ongoing support, upgrades and monitoring recur. Mattermost does not publish prices for its plans, so any subscription cost comes from Mattermost sales. Ask any implementation partner for a fixed-scope quote that lists each of these components separately.

How long does a Mattermost move to a new server take?

No duration figure applies here, so the answer depends on your environment. The schedule is set by the volume of posts and files, how many trial imports you run before production, how long the cutover window must be, and how quickly your team can test and approve results. Each trial run shows how long the full import takes at your data size, so treat that measured time as the planning input. Attachment handling and any retesting after a failed trial add time. Ask for a written timeline that names each trial run and the approval gate before production cutover.

What does our team need to provide for the move?

The work needs access and named owners more than extra engineering capacity. You need administrator access to the source server, shell or container access to the target, database credentials for both sides, and access to the file storage that holds attachments. Assign an owner for the business decision on which teams, channels and history move, and an approver who signs off trial results. Provide test users who can log in to the target and check their channels, direct messages and files, and a change window that business stakeholders have agreed to. Confirm each of these items in writing before work begins.

Can our own team move Mattermost to a new server without outside help?

Yes, a team with Linux, PostgreSQL and Mattermost administration skills can do the move using the documented export and import tools, but it needs time for trial runs and a clear test plan. The risk sits in the details: the export does not carry every object, attachments need a deliberate export, and an interrupted import must be resumed correctly. Outside help is most useful for planning the scope, building the target, running the trial imports, and producing evidence that the data was verified. Compare the cost of your team's time against a fixed-scope quote from an implementation partner.

Do webhooks and integrations move with the export?

No. Bulk export writes teams, channels, posts, threads, reactions, users, preferences, memberships, custom emoji, roles, permission schemes and bot users to the JSONL format used for bulk import. Webhooks are not exported, and deleted objects are not exported either. Plan to recreate incoming and outgoing webhooks, slash commands and other integrations on the new server, and update each external system that calls them with the new URL and any new tokens. Build an inventory of integrations before the move so that nothing is discovered broken after cutover. The Mattermost bulk export documentation lists the exact object types.

How are file attachments handled during the move?

Attachments are not part of a plain data export, so you must request them explicitly. A full export including attachments is created with the mmctl export create --attachments command. Attachments are stored by the file storage driver, so the target server must be configured with the same storage location or a planned copy of the files. Verify that files open and download for test users after the import, not only that the database rows exist. If you plan to change storage type during the move, treat that as a separate change with its own backup and test, since switching the driver does not move existing files by itself.

What must a trial run prove before production cutover?

A trial run must prove that the import completes, that counts and relationships match the source, and that real users can work on the target. Compare teams, channels, membership counts and sample posts, then check threads, reactions and custom emoji. Confirm that bulk import is safe to repeat: it is interruptible and idempotent, so an interrupted import resumes where it stopped and running the same file again imports the data only once. Record each result so that approvers can sign off on evidence rather than impressions.

Does the move also need a Mattermost version upgrade?

Not necessarily, but the target server should run a supported version. Mattermost releases a new server version in binary form on the 16th of each month, and Extended Support Releases carry longer support windows. For example, v11.7 is an Extended Support Release released on 2026-05-15 with support ending 2027-05-15. Decide the target version before the trial runs, because an import into a different version than the one you tested introduces a variable. Review the planned upgrade path separately if the source is far behind current releases.

How data moves from the source server to the production target

The export starts on the source Mattermost with mmctl export create --attachments, which writes a JSONL file and the attachment files together. Those two outputs move to a trial target first, where the import is checked before anything reaches production. The production target then receives the same import into its own PostgreSQL database and file storage. Webhooks and integrations sit outside this path and are rebuilt by hand on the new server, so plan that work alongside the import.

Export, trial import and production import, with webhooks rebuilt by hand.

What the migration needs from your team before work starts

Before any export runs, the migration needs a written inventory from your team, and the scope and deliverables are agreed in writing before work starts. The most important input is a list of teams, channels and the integrations and plugins that post into them. The bulk export carries teams, channels, posts, threads, reactions, users, preferences, memberships, custom emoji, roles, permission schemes and bot users, but it does not carry webhooks or deleted objects. Each webhook, slash command, bot and plugin on the legacy server therefore needs an owner, a decision to rebuild it, retire it or accept the gap, and a note on where its configuration lives so it can be recreated on the new server. Ask your team to confirm which plugins are installed, since plugin data is outside the core export.

Your team also needs to provide access to both servers and make a decision about the old one. The migration needs an administrator account with access to the source server to run the export, and a target server where your platform team has already installed the database, file storage and network configuration. Confirm who can reach the source, whether mmctl can authenticate to it, and where the export file and attachments will be staged. Decide how long the legacy server stays online after cutover, who may write to it during that period, and whether it is kept read-only for reference. Name one owner for verification, who signs off that users, channels, membership and message counts match, and agree acceptance criteria in advance, such as which channels must be spot-checked, which users must log in successfully and which integrations must be working.

How DeployOpen scopes and delivers a Mattermost server move

DeployOpen plans the move of a proof-of-concept or legacy Mattermost onto a new production server as a written, fixed-scope engagement. The work starts with an inventory of what the bulk export carries and what it leaves behind, then builds and rehearses the import in your own infrastructure before any cutover.

How we scope

  • Inventory the source server, its data types, attachments and integrations before quoting the move.
  • Record which webhooks, deleted objects and external integrations must be rebuilt or re-created by hand.
  • Agree in writing on the target server, database, storage, trial runs and cutover window before work starts.

How we build

  • Install the target Mattermost server and PostgreSQL in your infrastructure before the first export runs.
  • Create the full export with attachments, then run the import against a non-production copy of the target.
  • Test users, channels, threads, permissions and file access on the target, and document each defect found.

How we hand over

  • Deliver a runbook with export, transfer, import, verification and rollback steps for your own team to follow.
  • Document the list of items left behind, such as webhooks and deleted objects, with owners for rebuilding them.
  • Provide the trial run results and the final cutover checklist so your administrators can repeat or audit the move.

How we support

  • Offer ongoing support, upgrades and continuous testing for the new server as a retainer after cutover.
  • Plan the first post-move upgrade path against the release schedule your team chooses to follow.
  • Confirm with your team which support period and version track apply before the retainer scope is written.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.