slackup
backup my slacks
Installation
gem install slackup
Usage
Get token for each team from https://api.slack.com/web
Configure a file in the backup directory called
slack_teams.yml
, thoughslack_teams.yaml
andslack_teams.json
will also work.
The config file must contain a dictionary (hash) of team names (backup directories) and associated tokens.
e.g.
slack_teams.yml
---
some-team: xxxp-some-token
another-team: xxxp-different-token
slack_teams.json
{
"some-team": "xxxp-some-token",
"another-team": "xxxp-different-token"
}
- Run
slackup
in your terminal
Each key/value team pair will be run in a local directory named by the key using only the token for auth. Thus, the key (team) name can be whatever you want.
Development
This gem is does the bare basics of backup and works for me.
It has no tests.
It depends on the 'slack-api' gem
I run it periodically via bash update.bash
#!/usr/bin/env bash -l
bundle check || bundle --quiet
git commit -am "Update before update.bash"
bundle exec slackup &&
git commit -am "Update via update.bash" &&
git add . && git commit -am "Add new via update.bash"
Contributing
- Fork it ( https://github.com/[my-github-username]/slackup/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
MIT License