Gitlab: Difference between revisions
imported>F2k1de |
imported>F2k1de No edit summary |
||
Line 49: | Line 49: | ||
gitlab-rake gitlab:check | gitlab-rake gitlab:check | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Migrating an existing Gitlab to a Nixos installation == | |||
Make a backup on the on the old installation following the [https://docs.gitlab.com/ee/raketasks/backup_gitlab.html Gitlab backup guide]. It is important to be on the same version and edition that you want to install on your new server. | |||
Then install a Gitlab on the Nix. Make sure you set the same secrets like on the old installation. | |||
After a successful deploy, stop the Gitlab service using systemctl stop. | |||
Then copy the backup *_gitlab_backup.tar on the new server and run sudo -u gitlab gitlab-rake gitlab:backup:restore BACKUP=<name before the _gitlab_backup.tar>. You will be interactively asked what should be done. | |||
After that, start the Gitlab Service again using systemctl start. | |||
== Troubleshooting == | == Troubleshooting == |