Skip to content

Brightscout/mattermost-etl

Repository files navigation

Mattermost ETL CircleCI Code Climate Test Coverage

An ETL framework to migrate data from Jabber to Mattermost. This utility exports data from a source Jabber database and generates a Mattermost Bulk Loading import file. Eventually, we'll enhance this project to support migrations from other messaging sources.

Install

  1. Install Node.js Version 6.11.0 LTS or greater

  2. Clone this repo
    $ git clone https://github.com/Brightscout/mattermost-etl

  3. Install dependencies
    $ cd mattermost-etl
    $ npm install or $ yarn install

  4. Run tests
    $ npm test

Configure

  1. Copy the example config file to config.js
    $ cp context/config.example.js context/config.js

  2. Modify the values in context/config.js for the source, target, and team properties.

Export

  1. Execute the ETL exporter
    $ npm start

  2. Inspect the output file, data.json, or whatever you set as the target filename. Ensure the results are as expected.

Import

  1. Run the Mattermost bulk loading command as explained here

Made with ♥ by Brightscout