TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 ivanalejandro0超过 1 年前
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.

暂无评论

暂无评论