docs icon indicating copy to clipboard operation
docs copied to clipboard

Help Wanted: Request for Documentation: Migration from a PostgreSQL on-prem install to Omnibus

Open mm-cloud-bot opened this issue 4 years ago • 0 comments

Mattermost user miguel.delacruz from https://community-daily.mattermost.com has requested the following be documented:

hi @colton.shaw! There are a couple of changes I'd make to the process, just to ease the migration and include the specific configuration properties that are managed by Omnibus:
 1. Migrate the `config.json` to database in the origin server following the guide you provided. This way the configuration will be included in the database migration already
 2. Install Omnibus in the destination server. Stop the mattermost service with `sudo systemctl stop mattermost` before continuing.
 3. Migrate the existing postgres database. Username and password for the database in the destination machine can be found in `/etc/mattermost/mmomni.yml`, and the database that Omnibus created should be cleaned before importing the new one (or replaced during import)
 4. Manually set the necessary properties in `/etc/mattermost/mmomni.yml`. The [configuration properties listed here](https://docs.mattermost.com/install/mattermost-omnibus.html#configuring-mattermost-omnibus) need to be set in the `mmomni.yml` file to the values that the origin server had, currently those are `ServiceSettings.SiteURL`, `PluginSettings.EnableUploads` and `ServiceSettings.EnableLocalMode`
 5. Run `sudo mmomni reconfigure` to apply the new configuration values and restart the server

This is currently an experimental process, so please let me know if anything doesn't go as planned or I can help further with it

See the original post here.

This issue was generated from Mattermost using the Doc Up plugin.

mm-cloud-bot avatar Jul 09 '21 10:07 mm-cloud-bot