Skip to content

a simple, not really comprehensive, script to convert a mattermost json export to a rocket.chat csv import

License

Notifications You must be signed in to change notification settings

stylefish/MattermostToRocketChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

MattermostToRocketChat: Migrate channels/rooms and messages from Mattermost to Rocket.Chat

a simple, not really comprehensive, script to convert a Mattermost json export file to a Rocket.Chat csv import zip file

i thought someone might be interested, so i shared it here. PRs welcome (would be great if the resulting zip import can be tested ;)) code is rough and written in a couple of minutes to transfer messages of a hand full of channels, so probably not the solution you were looking for if you have lots of channels with lots of members :D

currently its only tested on windows with PS Core, but it probably could work on linux/macOS if you install PS Core and change the path separators from \ to /.

How to use

  1. Download mmtorc.ps1
  2. update the variables at the top of the script to match you preferences
  3. execute mmtorc.ps1

What it can do currently

  • Import channels (with blacklist)
  • Import messages of channels

What it can't do currently

  • Import users
  • Import channel members (will be set to a default user(s), adding members must be done manually after import)
  • Import direct messages

Disclaimer

this script was more of a "proof of concept" NOT a comprehensive solution to migrate production data from one system to another.

use this script at your own risk! i'm not resposible for any missing messages or failures/overwrites during import / export etc.

i just thought this might be a good starting point for someone

Resources

About

a simple, not really comprehensive, script to convert a mattermost json export to a rocket.chat csv import

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published