Migrate data from dead Gitlab-CE instance using only local files, backup corrupted!

You could try:

  1. Install gitlab-ce 15.6.2 on new server (has to be same version as existing install).
  2. Copy /opt/gitlab, /var/opt/gitlab, /var/log/gitlab, /etc/gitlab to the new server, overwriting what you just installed in point 1. Make sure if you copy to ensure permissions are also copied - rsync would be good using the -a flag.
  3. Once gitlab.rb and gitlab-secrets.json are in /etc/gitlab, you can then try gitlab-ctl reconfigure

Not sure if that would be possible, but it’s worth trying anyway just in case.

4 Likes