Free GitHub Backup, 2 commands (read-only, restore with plain Git)



This content originally appeared on DEV Community and was authored by Richard Ballard

If your DR plan still says “hope we never need it,” here’s a 2-command seatbelt.

What it does

  • Creates Git-native read-only mirrors (*.git)
  • Zero telemetry
  • Restores with plain Git (no tool required)

Quickstart


pwsh
gh extension install rickballard/gh-rz
gh rz -User $(gh api user --jq .login) -OutDir "$HOME/Desktop/GitHubRepoBackups"

Restore without the tool
The backup folder includes RESTORE.md and RESTORE.ps1. You can git clone --mirror or recreate repos in a clean org and push --mirror.

Get it: [Latest Release](https://github.com/rickballard/gh-rz/releases/latest)  [Source](https://github.com/rickballard/gh-rz)

Ethics (voluntary)
[No crowns, no coercion, no corruption
](https://github.com/rickballard/gh-rz/blob/master/ETHICS.md)

Tell me what hurts in your DR runbooks and I’ll prioritize fixes that help most teams.   Free gift, no strings attached, be nice.


This content originally appeared on DEV Community and was authored by Richard Ballard