Git Product home page Git Product logo

slack-dump's Introduction

slack-dump

Generate an export of Channel, Private Group and / or Direct Message history and export it as a ZIP file compatible with Slack's import tool.

Token

  1. Visit https://api.slack.com/
  2. Click "Create an app"
  3. Select "From scratch"
  4. Input App Name and pick a workspace
  5. Click "Features" โ†’ "OAuth & Permissions" of sidebar
  6. Go to "Scopes" and set User Token Scopes as follows
  • channels:read
  • channels:history
  • groups:read
  • groups:history
  • im:read
  • im:history
  • mpim:read
  • mpim:history
  • users:read
  1. Go to "OAuth Tokens for Your Workspace" and click "Install to Workspace"
  2. Accept
  3. OAuth Token is displayed in "OAuth Tokens for Your Workspace"

Usage

$ slack-dump -h

NAME:
   slack-dump - export channel and group history to the Slack export format include Direct message

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   1.4.0

AUTHORS:
   Joe Fitzgerald <[email protected]>
   Sunyong Lim <[email protected]>
   Yoshihiro Misawa <[email protected]>
   takameron <[email protected]>
   Toru Nakashika <[email protected]>

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --token value, -t value   a Slack API token: (see: https://api.slack.com/apis) [$SLACK_API_TOKEN]
   --output value, -o value  Output directory path. Default: current directory path [$]
   --mattermost, -m          Enables Mattermost format. (default: false)
   --help, -h                show help (default: false)
   --version, -v             print the version (default: false)

Export All Channels And Private Groups

$ slack-dump -t=YOURSLACKAPITOKENISHERE

Export Specific Channels And Private Groups

$ slack-dump -t=YOURSLACKAPITOKENISHERE channel-name-here privategroup-name-here another-privategroup-name-here

Export All Channels and DMs for Mattermost format

  1. Execute slack-dump with -m option
$ slack-dump -m -t=YOURSLACKAPITOKENISHERE
  1. Use slack-advanced-exporter to contain e-mail addresses and file attachments
$ slack-advanced-exporter --input-archive slackdump-XXXXXXXXXXXXX.zip --output-archive export-with-emails.zip fetch-emails --api-token YOURSLACKAPITOKENISHERE
$ slack-advanced-exporter --input-archive export-with-emails.zip --output-archive export-with-attachments.zip fetch-attachments --api-token YOURSLACKAPITOKENISHERE
  1. Convert the format using mmetl
$ mmetl transform slack --team team-name-here --file export-with-attachments.zip --output mattermost_import.jsonl
$ mkdir data
$ mv bulk-export-attachments data

slack-dump's People

Contributors

jbott avatar joefitzgerald avatar makeusmobile-deploy avatar pyyoshi avatar takameron avatar teaule 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.