gitubunturepositorygitolite

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


Solution

  • What you will need is also to move your ssh config:

    ~/.ssh/authorized_keys
    

    That is the file used by SSH and configured by Gitolite in order to:

    See "How Gitolite uses ssh"


    The OP confirms that was the issue and points out to the Gitolite documentation:
    "moving the whole thing from one server to another":
    (note: this is for 'g2'; ie Gitolite V2, but the idea is the same for Gitolite V3 or 'g3')

    The idea behind this process is to create a new Gitolite instance, and then push your existing Gitolite repo, which will redeclare automatically all your current existing keys in your new server ~/.ssh authorized_keys for you.