dngray ~/privacytools.io $ ~/backup-github-repo/bin/backup-github-repo.sh
[backup-github-repo] config not found or empty
We recommand setting a configuration file to store a Github API token.
Using a token increases the number of API requests we can make, see https://developer.github.com/v3/#rate-limiting
Get a new token at https://github.com/settings/tokens
Public repo: no special permission required.
Private repo: require authorization: [repo: Full control of private repositories]
Create a configuration file? [Y/n]
: y
Where should the config file be stored?
1 - /home/dngray/privacytools.io/.backup-github-repo (local, default)
2 - /home/dngray/.backup-github-repo (global)
: 1
Enter token: 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
invalid token: expected the token to match the pattern /^[0-9a-f]{40}$/
Enter token:
My token is in the format: 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 (currently revoked token)
My token is in the format:
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
(currently revoked token)