mYYnSmiTEQWcCwAr
V2EX  ›  问与答

有没有能自动备份 github star 过的仓库的软件?

  •  
  •   mYYnSmiTEQWcCwAr · Jun 30, 2020 · 1921 views
    This topic created in 2165 days ago, the information mentioned may be changed or developed.
    昨天 github 又崩了,在 github 崩的时候想看代码都看不了

    于是有没有一种自动盯住我 star 过的仓库 /手动添加的仓库,每天定时 pull,并提供网页版显示(也可以是自动 push 到私有 gitlab )

    如果仓库发生了 force push,需要再次 clone 一个新版本避免丢失历史

    最好还能备份好 issue 之类的信息(怎么感觉在做个钓鱼的 github 一样 hhh
    2 replies    2022-02-25 21:14:51 +08:00
    mYYnSmiTEQWcCwAr
        1
    mYYnSmiTEQWcCwAr  
    OP
       Jul 1, 2020
    自己实现了个简单的: https://py3.io/Git/#githubstar

    概括起来就是调用 githubapi 获取 star 过的仓库
    以及 git clone --bare,git fetch --all,git remote add,git push --all

    还没有解决的 TODO: 注意到仍然是双份的空间占用(同步和 gitea 都存了),需要看看能不能直接从 gitea 的 git 存储发起 fetch 更新
    lunny
        2
    lunny  
       Feb 25, 2022
    用 Gitea 的 pull mirror 功能
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4647 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.