Gitlab backup and restore

Note : gitlab should be same version.

Manual backup:

/etc/gitlab/gitlab-secrets.json

/etc/gitlab/gitlab.rb

 

Generate backup:

gitlab-rake gitlab:backup:create

 

Restore backup:

You have run sudo gitlab-ctl reconfigure at least once.
GitLab is running. If not, start it using sudo gitlab-ctl start.

gitlab-ctl stop unicorn

gitlab-ctl stop sidekiq

gitlab-rake gitlab:backup:restore BACKUP=335565885_2019_05_20.6

restore /etc/gitlab/gitlab-secrets.json and /etc/gitlab/gitlab.rb