TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I made a simple script to backup GitHub repos

1 pointsby ivanalejandro0over 1 year ago
I&#x27;ve made a simple python script to keep a local copy (mirror) of github repositories, on the first run it will clone repos and on subsequent runs fetch the latest updates.<p>This only backs up git repositories, it does nothing with other GitHub data like issues&#x2F;wiki&#x2F;projects&#x2F;etc. Only backing up the repo is good enough for my use case, at least for now. Hopefully this can be useful to someone else.<p>It uses the github cli tool to download your list of repos and store it locally to a json file, but you could manually write that file yourself and use the tool to sync repositories from anywhere.<p>I wanted to keep a backup of my repositories just in case, but I didn&#x27;t really like the other tools I found out there, so I wrote a simple script to clone&#x2F;fetch all my repos, and it grew a little bit from there. Now I have a little more peace of mind having my repos backed up, and even though there&#x27;s more github data that this doesn&#x27;t back up I thought it was worth sharing.

no comments

no comments