docs/main/administration-guide/upgrade/downgrading-mattermost-server.mdx
In most cases you can downgrade Mattermost Server using the same steps as upgrading mattermost server. Server binaries can be found in the Mattermost server version archive documentation.
Before downgrading the Mattermost server, we strongly recommend the following preparation steps.
- Back up your database using your organization’s standard procedures for backing up the database.
- Back up your application by copying into an archive folder (e.g.
mattermost-back-YYYY-MM-DD-HH-mm). Ensure to copy your Mattermost configuration files and any other necessary application files.
mattermost db downgrade 128,127,126You can review downgrade changes before committing them if you have used the --save-plan option while upgrading Mattermost. It has both forwards and backwards SQL scripts. This option allows you to avoid specifying migrations to be downgraded, and allows you to use older versions of Mattermost to perform the downgrade. For example: mattermost db downgrade migration_plan_128_127.json.
config.json file to match the downgraded version's expectations and support.Replace the current Mattermost application binary with the version you want to downgrade to. Make sure to use the binary of the target version. The newer Mattermost binary contains the downgrade SQL for the migrations to be rolled back. The newer binary version is used to perform the downgrade; then you start using the application binary of the version you want to downgrade to.