Fast GitHub repository backup tool in Rust.
v1.0.0 focuses on one thing: clone and update repositories.
- Clones all repositories for a GitHub user or organization
- Updates existing local clones on repeated runs
- Supports specific repository selection with
--repo owner/repo
Repository clone-only scope in v1.0.0.
- Rust toolchain (stable)
gitavailable onPATH
cargo build --releasecargo run --release -- <github-username> -o ./backupcargo run --release -- <github-org> --organization -o ./backupSet GITHUB_TOKEN first, then run the same command with your username:
export GITHUB_TOKEN=ghp_your_token_here
cargo run --release -- <your-username> -o ./backupRun the same command again. Existing repositories are fetched and fast-forwarded.
backup/
repositories/
owner-a/
repo-one/
owner-b/
repo-two/
repositories.json
cargo fmt --check
cargo test- License: MIT (
LICENSE) - Security policy:
SECURITY.md - Contribution guidelines:
CONTRIBUTING.md - Release notes:
CHANGELOG.md