0

I need to backup github repo and restore it to another git server (eg: gitlab/bitbucket etc, with all those issue/pull request/tag/branches restore)

Assumption:

  • The backup will not be sync to another repo. It will only be restore to another git repo when github is down
  • During restore time to another git server, GITHUB service is completely down and not accessible.
  • Not depending on any other paid backup solution service

I am currently using git clone --bare to do backup but I am unsure if it is dependent on GITHUB service availability when restoring to gitlab/bitbucket etc

Or if there is a better way to do backup (Eg: git clone --mirror, git bundle)

2
  • 1
    git clone --bare needs to be able to connect to the git server you are cloning from, just as git clone or git fetch with other arguments. Note that you cannot use git commands for replicating issues or pull requests. Commented Sep 1, 2024 at 13:39
  • ^ this is because issues and pull requests are not a part of Git itself, but instead a feature of whichever repository hosting service or software you use. Tags and branches should be included in git clone --mirror, but that command only works if your remote (GitHub, etc.) is available. Commented Sep 3, 2024 at 17:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.