Back to discussionComment by capableweb[-]capableweb3 years ago1 reply#> a SQLite-backed Gitea instance is the simplest solutionAgree to disagree :)This seems like the simplest solution: git remote set-url --add --push origin git@github.com:my-user/my-repo.git git remote set-url --add --push origin /backups/repos/my-user/my-repo.git Now when you push to origin, it pushes to your local backup as well, everything up to date, no external sosftware at all :)Thanks dabber for sharing this trick (https://news.ycombinator.com/item?id=34603174)sangnoir3 years ago#This does not include the cron jobs to pull in changes others make daily/weekly/every N hours. I mentioned that Gitea is superior under very specific conditions (where one wants to have latest version available locally).
capableweb3 years ago1 reply#> a SQLite-backed Gitea instance is the simplest solutionAgree to disagree :)This seems like the simplest solution: git remote set-url --add --push origin git@github.com:my-user/my-repo.git git remote set-url --add --push origin /backups/repos/my-user/my-repo.git Now when you push to origin, it pushes to your local backup as well, everything up to date, no external sosftware at all :)Thanks dabber for sharing this trick (https://news.ycombinator.com/item?id=34603174)
sangnoir3 years ago#This does not include the cron jobs to pull in changes others make daily/weekly/every N hours. I mentioned that Gitea is superior under very specific conditions (where one wants to have latest version available locally).
Agree to disagree :)
Now when you push to origin, it pushes to your local backup as well, everything up to date, no external sosftware at all :)This seems like the simplest solution:
Thanks dabber for sharing this trick (https://news.ycombinator.com/item?id=34603174)