https://github.com/madetech/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.
https://github.com/madetech/slackstorian
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/madetech/slackstorian
- Owner: madetech
- Created: 2019-05-16T09:47:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T17:13:43.000Z (about 6 years ago)
- Last Synced: 2025-06-27T00:17:04.678Z (12 months ago)
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 37
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](pipenv) and dependancys
```bash
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](https://api.slack.com/custom-integrations/legacy-tokens)
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