It’s possible to restore a Gitlab CE instance, just using an SQL export of the database? I don’t have the “gitlab:backup:create” backup, just the PostgreSQL database export.
My Gitlab version 9.2.2
I tried:
Installing a new 9.2.2 instance, using another database (external postgresql server), run “gitlab-ctl reconfigure” and “gitlab-ctl start”. And a new Gitlab CE 9.2.2 instance is running.
Restore /etc/gitlab & /var/opt/gitlab
gitlab-ctl reconfigure -> OK!
gitlab-rake gitlab:check -> OK!
gitlab-ctl restart -> OK!
Accessing via Web
EDIT:
Setting right permissions, now I see all repos listed in Gitlab interfac, but all of them are empty.
20 blalblabla / use ... wrong or missing hooks
21 Try fixing it:
22 sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks /var/opt/gitlab/git-data/repositories
23 Check the hooks_path in config/gitlab.yml
24 Check your gitlab-shell installation
25 For more information see:
26 doc/install/installation.md in section "GitLab Shell"
27 Please fix the error above and rerun the checks.
Yes, that specific error was a permission thing.
Anyway, I finally achieved it. I’ll post here the complete procedure after do some tests to ensure everything is working ok.