Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving gitolite server

I have a working gitolite server. However, I want to move it to an identical configuration, but on a bigger machine. Even though I have gitolite working, I am not sure about the strings under it. Mainly its relationship with ssh.

I would like to just install the packages gitolite, git-core. And move the repository directories for the git user. None of the keys need to change. Is this correct ? what are the configuration ties gitolite has to the current server. I am working with Ubuntu

I was specially confused by gl-setup, which did the job, but leaves me in the dark about the process.

Thanks

like image 292
jeremyvillalobos Avatar asked Mar 23 '12 06:03

jeremyvillalobos


1 Answers

The instructions have changed for Gitolite V3

(Copied from http://gitolite.com/gitolite/rare.html):

  1. Install gitolite on the new server, using the same key for the admin as for the old server.

  2. Copy the .gitolite.rc file from the old server, overwriting this one.

  3. Disable the old server so people won't push to it. There are several ways to do this, but the simplest is to insert exit 1; at the top of ~/.gitolite.rc on the old server:

  4. Copy all the repos over from the old server, including gitolite-admin. Make sure the files end up with the right ownership and permissions; if not, chown/chmod them.

  5. Run gitolite setup.

  6. On a clone of the old gitolite-admin, add a new remote (or change an existing one) to point to the new server. Then git push -f to this remote.

like image 186
mtpettyp Avatar answered Oct 13 '22 23:10

mtpettyp