How can I restore a backup created with gitlab-ce to gitlab-ee ?

Hi,

In our Gitlab-EE installation we want to restore data coming from our first Gitlab installation, which was Gitlab-CE. Unfortunately, this is not so trivial as rake complains about Gitlab version incompatibility...

Basically I got this issue:

GitLab version mismatch: Your current GitLab version (8.14.0-ee) differs from the GitLab version in the backup! Please switch to the following version and try again: version: 8.14.0

Then I tried to untar the backup, modify the backup_information.yml, re-create the tar archive and retry restore procedure....

At that time I got this error:

rake aborted! Errno::ENOENT: No such file or directory @ rb_sysopen - backup_information.yml /appl/gitlc00/gitlab-opt/embedded/service/gitlab-rails/lib/backup/manager.rb:192:in 'settings' /appl/gitlc00/gitlab-opt/embedded/service/gitlab-rails/lib/backup/manager.rb:131:in 'unpack' /appl/gitlc00/gitlab-opt/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:33:in 'block (3 levels) in <top (required)>' /opt/gitlab/embedded/bin/bundle:22:in 'load' /opt/gitlab/embedded/bin/bundle:22:in '<main>' Tasks: TOP => gitlab:backup:restore

I can imagine that rake detects the tar as a corrupted archive...

I'm wondering how can I restore my data ? What's the best practice ?

Should I start from a CE installation on my PROD server, then restore backup and finally upgrade to EE ? I really want to avoid "installing" gitlab twice!

Thanks in advance for the help and advices, A.

Assignee Loading
Time tracking Loading