Skip to main content

ghsync - Project by Kushagra Sharma

Less than a minute151 words8 views
ghsync
README.md151 lines

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:

  1. List all repos you have access to (personal + org)
  2. Clone new repos / pull existing ones
  3. 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 ghsync

Or clone and build from source.

Born out of paranoia. Zero regrets.

comments0 comments

Loading comments...

© 2026 Kushagra Sharma (TheDarkArtist)

https://www.thedarkartist.in/projects/ghsync