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
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
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:
Inspired by https://github.com/alexwlchan/backup-slack