How to import projects from another gitlab instance
Hi, Given 2 gitlab servers:
- gitlab1
- gitlab2
And we want to import ___gitlab1 ___ projects into gitlab2 . Both gitlab are installed with omnibus
Connect to gitlab1
john@gitlab1$ sudo tar czvf git-data.tar.gz /var/opt/gitlab/git-data
john@gitlab1$ scp git-data.tar.gz john@gitlab2:~/
Connect to gitlab2
john@gitlab2~$ sudo xzvf git-data.tar.gz -C /var/opt/gitlab/
john@gitlab2~$ sudo chown -R git:git /var/opt/gitlab/git-data/
john@gitlab2~$ sudo gitlab-rake gitlab:import:repos
john@gitlab2~$ sudo gitlab-rake gitlab:assest:precompile
Go on your gitlab interface and you should see your projects there.
