ghsync
Simple idea – back up every single GitHub repo you own (personal + org) to a local directory. One command, all repos, done.
Why
Because i’ve been through enough distro hops and system wipes to know that having all your code only on GitHub is asking for trouble. Hard drives die, accounts get compromised, services go down. Local backups are non-negotiable.
I got tired of writing the same bash one-liner every time, so i packaged it up properly.
How it works
Uses the gh CLI under the hood to:
- List all repos you have access to (personal + org)
- Clone new repos / pull existing ones
- Mirror everything to a local backup directory
That’s it. No fancy sync algorithms, no conflict resolution – just a reliable way to keep a local copy of everything.
Install
Available on the AUR for Arch users:
yay -S ghsyncOr clone and build from source.
Born out of paranoia. Zero regrets.
Loading comments...