A simple CLI tool for backing up Github repos and gists
- works for github.com and enterprise github instances
- backup all gists or those matching a regular expression
- delete gists older than x number of days or matching a regular expression
- backup all of your starred respositories
- backup all repos you own, contribute to, or owned by an orgnization you are apart of
➜ ghb -h
-config
path to configuration file (default ~/.ghb/config.toml)
-d
run in debug mode
-h
show usage
-nc
dont color output
-token
Github API token (default $GITHUB_TOKEN env var)
-v
print version
ghb's config file is written in TOML and a documented example of the default configruration is provided in config.toml
Linux and OSX binaries can be found under releases
brew tap mmercedes/ghb https://github.com/mmercedes/ghb
brew install mmercedes/ghb/ghb
go get github.com/mmercedes/ghb