Skip to content
Slack backup tool, that uploads the history public channels history to S3 and posts an announcement in a channel of your choice when it's done.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
slackstorian
test
.gitignore
Makefile
Pipfile
Pipfile.lock
README.md
lambda.py

README.md

Slackstorian

Slack backup tool, that uploads the history public channels history to S3 and posts an announcement in a channel of your choice when it's done.

How to backup:

install https://docs.pipenv.org/en/latest/#install-pipenv-today and dependancys

pipenv install --dev

Set the following enviroment variables in ./.env:

aws_access_key_id=ACCESS_KEY_ID
aws_secret_access_key=SECRET_ACCESS_KEY
bucket_name=BUCKET_NAME
slack_token=LEGACY_SLACK_TOKEN
notification_channel=CHANNEL_NAME

Generate LEGACY_SLACK_TOKEN here

Then run:

pipenv run python lambda.py

By default the backups are saved in ./backup/ and uploaded into the defined bucket.

How to restore:

Zip all the files in the defined bucket and use Slack's import tool, found here: https://[WORKSPACE_NAME].slack.com/services/import


Inspired by https://github.com/alexwlchan/backup-slack

You can’t perform that action at this time.