Migrate from 6.0.1 source install to new server omnibus 8 latest

Hello
We have a source compiled postgresql backend gitlab with version 6 and a lot of projects .
We dont want to upgrade the dirty install and try to migrate all data to new server
A: We transfer all repositories and do a rake import repos import db manually adding ldap authentication again but users and group we dont know what do to with them so we go to plan B
B: We create a backup using bundle in old server transfer it to new one and rake backup:restore give us
DEBUG – : ** [Raven] Event not sent due to excluded environment: production
rake aborted!
Don’t know how to build task ‘backup:restore’

I searched before so many times in stackoverflow here and see others instructions but we dont want to take the risk and upgrade the old one .

any solutions ?

thank you

@Ara4Sh The task is called gitlab:backup:restore rather than backup:restore so if the new setup uses omnibus it is supposed to be sudo gitlab-rake gitlab:backup:restore

To view all available rake tasks on omnibus, just use the following command:

  • sudo gitlab-rake -T

Additional points:

1 Like

Thank you

Im thinking about another way to upgrade :
Creating a new machine install omnibus 6.0.1 - restore source installation backup and then upgrade through deb .

but how can i find omnibus 6.0.1 is package exist ?

GitLab was first shipped using OmniBus on 6.6, see https://about.gitlab.com/2014/02/14/gitlab-is-now-simple-to-install/

So you have to install 6.0.1 from source, then follow this guide: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/6.x-or-7.x-to-7.14.md that allows you to quickly update from 6.^ to 7.14.

From 7.14, shift to omnibus and then use the package manager to update && upgrade GitLab

1 Like