Josue Kouka

Josue Kouka

Code, Linux, and open source — one post at a time.

27 May 2015

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

  1. 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:~/
  1. 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
  1. Go on your gitlab interface and you should see your projects there.

Categories