ghbu

Crates.ioghbu
lib.rsghbu
version0.1.7
sourcesrc
created_at2024-04-27 08:06:21.79559
updated_at2024-05-06 07:52:26.964847
descriptionBackup your GitHub Repositories
homepage
repositoryhttps://github.com/patrickbucher/ghbu
max_upload_size
id1222402
size48,526
Patrick Bucher (patrickbucher)

documentation

README

ghbu: GitHub Backup

Usage

Backup the repositories owned by user joe:

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

Backup the repositories owned by organization acme:

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

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

  • Concurrency
    • interleave API calls with cloning/fetching of repositories
  • Extension
    • implement for GitLab API
    • implement for Gitea API
    • consider supporting HTTPS credentials
    • consider supporting SSH Key from Agent
    • add support for SSH Passphrase (as environment variable)
Commit count: 36

cargo fmt