Skip to content

Export History For Channel, Private Group and Direct Message From Slack

License

Notifications You must be signed in to change notification settings

takameron/slack-dump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.3.0

AUTHORS:
   Joe Fitzgerald <[email protected]>
   Sunyong Lim <[email protected]>
   Yoshihiro Misawa <[email protected]>
   takameron <[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 [$]
   --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

About

Export History For Channel, Private Group and Direct Message From Slack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 93.3%
  • Makefile 6.7%