ghbu 0.1.3

Backup your GitHub Repositories
Documentation

ghbu: GitHub Backup

Design

Usage (backup the repositories owned by the user with the given GITHUB_TOKEN to ~/github-backup, access by the given SSH key):

$ GITHUB_TOKEN=0123abc ghbu --to ~/github-backup --keyfile ~/.ssh/id_ed25519

Dependencies

  • git2: clone and fetch Git repositories
  • reqwest: request repositories from GitHub API
  • serde_json: unmarshal GitHub API payloads
  • clap: parse command line arguments

TODO

  • Refactoring
    • get rid of unwrap() calls
    • restructure code
  • Concurrency
    • interleave API calls with cloning/fetching of repositories
  • Extension
    • implement for GitLab API
    • implement for Gitea API
    • clone an organization's repositories, too