Gitlab backup and restore

1.9k Views Asked by At

I want to backup gitlab and restore it on another server. How to do it? I tried nothing till now just asking for help and suggestions. I read gitlab documentation , in the document they are telling to backup /etc/gitlab/gitlab-secret.json but i my system gitlab is installed in /opt and i couldn fine .json file ? And i am using centos.

1

There are 1 best solutions below

12
On BEST ANSWER

I read gitlab documentation , in the document they are telling to backup /etc/gitlab/gitlab-secret.json but i my system gitlab is installed in /opt and i couldn fine .json file ?

If you installed from source, the secret file will be at /home/git/gitlab/.secret. The JSON file would only exist in an omnibus installation.

How to do it?

The backup & restore docs are pretty good. Follow the steps and, if you have any trouble, please ask.