Skip to content
/ ghb Public

A tool for performing backups and deletions of Github gists and starred repositories

Notifications You must be signed in to change notification settings

mmercedes/ghb

Repository files navigation

ghb

Build Status

A simple CLI tool for backing up Github repos and gists

Features

  • 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

Usage

➜ 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

Configuration

ghb's config file is written in TOML and a documented example of the default configruration is provided in config.toml

Install

Binaries

Linux and OSX binaries can be found under releases

Homebrew

brew tap mmercedes/ghb https://github.com/mmercedes/ghb
brew install mmercedes/ghb/ghb

Go

go get github.com/mmercedes/ghb

About

A tool for performing backups and deletions of Github gists and starred repositories

Resources

Stars

Watchers

Forks

Packages

No packages published