Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Mention statistics in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jorinvo committed Oct 3, 2017
1 parent 21b247f commit 2d01941
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ For example:
0 1 * * * ghbackup -account qvl /home/qvl/backup-qvl
```

### Sending statistics

The last line of the output contains a summary.
You can use this to collect statistics about your backups.
An easy way would be to use a [Slack hook](https://api.slack.com/incoming-webhooks) and send it like this:

```sh
ghbackup -secret $GITHUB_TOKEN DIR \
| tail -n1 \
| xargs -I%% curl -s -X POST --data-urlencode 'payload={"text": "%%"}' $SLACK_HOOK
```


## What happens?

Expand Down

0 comments on commit 2d01941

Please sign in to comment.