⚠️ DEPRECATION NOTICE
This project has been deprecated starting with Mattermost v11. The last release of mattermost-omnibus is v10.12. Please consider migrating to alternative deployment methods such as Docker, Kubernetes, or the official deployment guide available at docs.mattermost.com/deployment-guide/server/server-deployment-planning.html.
If you're currently using mattermost-omnibus and need to migrate to an officially supported deployment method, follow these steps:
Before migrating, create a complete backup using the built-in backup command:
# Create a complete backup (includes config, database, and data directory)
sudo mmomni backupThis will create a tarball containing:
- Configuration file (
mmomni.yml) - contains omnibus-specific settings - PostgreSQL database dump
- Data directory with file uploads
- All necessary files for migration
Important: The mmomni.yml file contains omnibus-specific configuration that you'll need to translate to your new deployment:
db_user&db_password- Database credentials for accessing your existing PostgreSQL instancefqdn- Your server's domain nameemail- Admin email for SSL certificateshttps- SSL/TLS configurationdata_directory- Path to file uploadsenable_plugin_uploads- Plugin upload settingsenable_local_mode- Local development mode settingsclient_max_body_size- File upload size limits
These settings will help you configure your new deployment's database connection, SSL certificates, nginx settings, and Mattermost server configuration.
Also back up your server configuration files located at /opt/mattermost/config.
Select one of the officially supported deployment methods:
- Docker: Recommended for single-server deployments
- Kubernetes: Best for scalable, cloud-native deployments
- Binary Installation: Direct server installation with manual configuration
Refer to the deployment planning guide to choose the best option for your needs.
Follow the installation guide for your chosen method:
After setting up the new deployment:
- Stop the new Mattermost service
- Extract the backup tarball created by
mmomni backup - Use the database credentials from
mmomni.yml(db_user,db_password) to restore the PostgreSQL database dump to your new database instance - Configure your new deployment using settings from
mmomni.yml:- Update database connection settings with the restored database
- Configure the site URL using the
fqdnvalue - Set up SSL/TLS certificates (use
emailandhttpssettings as reference) - Configure nginx with appropriate
client_max_body_size - Enable plugin uploads based on
enable_plugin_uploadssetting
- Restore file uploads from the backup's data directory to your new deployment's data directory (referenced by
data_directoryinmmomni.yml) - Start the Mattermost service
- Test user login and functionality
- Verify file uploads and downloads work correctly
- Check that integrations and plugins are functioning
- Update any external integrations to point to the new server
Once you've verified the migration was successful:
# Remove omnibus package
sudo apt remove -y mattermost-omnibus --purge
sudo apt autoremove
# Clean up and check old files are removed (be careful - ensure backups are safe first)
sudo rm -rf /opt/mattermost
sudo rm -rf /var/opt/mattermostFor assistance with migration, consult the Mattermost community forums or official documentation.
Please refer to the Omnibus Install Documentation.
You need to have make and docker installed, and the following
repositories added to the apt sources:
To build a package, just run:
make all version=X.Y.Z revision=N