{"id":19220432,"url":"https://github.com/louisbrunner/slack-channel-backup","last_synced_at":"2026-05-14T22:04:58.867Z","repository":{"id":53177815,"uuid":"209115551","full_name":"LouisBrunner/slack-channel-backup","owner":"LouisBrunner","description":"Backup (and potentially delete) the content of a Slack channel (including files)","archived":false,"fork":false,"pushed_at":"2023-07-26T10:13:34.000Z","size":94,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T09:23:17.791Z","etag":null,"topics":["backup","channels","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LouisBrunner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-17T17:23:13.000Z","updated_at":"2022-12-10T11:26:49.000Z","dependencies_parsed_at":"2024-11-09T14:38:55.448Z","dependency_job_id":"35f2e2d1-200b-4d5f-872e-e24f81700710","html_url":"https://github.com/LouisBrunner/slack-channel-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LouisBrunner/slack-channel-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LouisBrunner%2Fslack-channel-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LouisBrunner%2Fslack-channel-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LouisBrunner%2Fslack-channel-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LouisBrunner%2Fslack-channel-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LouisBrunner","download_url":"https://codeload.github.com/LouisBrunner/slack-channel-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LouisBrunner%2Fslack-channel-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","channels","slack"],"created_at":"2024-11-09T14:35:09.941Z","updated_at":"2026-05-14T22:04:58.832Z","avatar_url":"https://github.com/LouisBrunner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slack-channel-backup [![Build Status](https://travis-ci.org/LouisBrunner/slack-channel-backup.svg?branch=master)](https://travis-ci.org/LouisBrunner/slack-channel-backup)\n\nThis tool allows you to backup (and potentially delete) the content of a Slack channel (including files).\n\n## Usage\n\nYou will need to provide your own `SLACK_API_TOKEN` token as a environment variable\n\n```\n$ export SLACK_API_TOKEN=xoxp-WHATEVER\n$ ./slack-backup.py '#random' --where mybackup\n```\n\nYou will end up with a folder named `mybackup` containing a `conversation.txt` file with all the history and a `files` folder with the uploaded files (which are properly tagged as such in the history).\n\nThe tool also allows to control a date range for the backup and to delete the backed up history:\n\n```\n$ ./slack-backup.py -h\nusage: slack-backup.py [-h] [--where WHERE] [--delete] [--from FROM] [--to TO] channel\n\nBackup a slack channel (and potentially delete) the content of a Slack channel (including files)\n\npositional arguments:\n  channel        channel to backup (use # prefix for channels, @ prefix for DMs)\n\noptional arguments:\n  -h, --help     show this help message and exit\n  --where WHERE  where to store the backup\n  --delete       delete the backed up messages\n  --from FROM    when to start backing/deleting up\n  --to TO        when to stop backing/deleting up\n```\n\n## Required permissions\n\nYou will need to [create a Slack app](https://api.slack.com/apps) with the following permissions:\n\n - Always: `files:read`, `users:read`\n - When using public channels: `channels:history`, `channels:read`\n - When using private channels: `groups:history`, `groups:read`\n - When using Direct Messages: `im:history`, `im:read`\n - When deleting messages: `chat:write:user`, `files:write:user`\n\n## Disclaimer\n\nThis project is using the old Slack API for channels and direct messages instead of new conversations one (https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouisbrunner%2Fslack-channel-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouisbrunner%2Fslack-channel-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouisbrunner%2Fslack-channel-backup/lists"}