Coder Social home page Coder Social logo

mmdump's Introduction

mmdump

CI

mmdump is a simple tool for non-admins to export data from Mattermost.

Pre-alpha software. Expect crashes, data loss, silent data corruption etc.

Rationale

It doesn't seem possible to export data from Mattermost without being an admin.

Installation

$ go install github.com/tomyl/mmdump@latest

Usage

  1. Log in to the web version of Mattermost.
  2. Copy the session cookie e.g. using Inspect -> Network in your brower.
  3. Run
$ mmdump -endpoint https://mattermost.example.com/api/v4/ -dir mydumpdir -cookie <COOKIE>

By default posts in all channels are dumped. Add -channel <CHANNELID> to dump a single channel.

To lists channels in a dump:

$ mmdump -dir mydumpdir -channels

To lists posts for a channel:

$ mmdump -dir mydumpdir -posts <CHANNELID>

TODO

  • Currently not supporting pagination when fetching channels.
  • Nicer CLI interface.
  • Nicer posts output e.g. show reactions.

mmdump's People

Contributors

tomyl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.