Gitlab: Difference between revisions
imported>F2k1de No edit summary |
imported>Mweinelt m Nix is a package manager, NixOS is the distro that provides the module |
||
| Line 53: | Line 53: | ||
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. | 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 | Then install a Gitlab on the NixOS. Make sure you set the same secrets like on the old installation. | ||
After a successful deploy, stop the Gitlab service using systemctl stop. | 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. | 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. | After that, start the Gitlab Service again using systemctl start. | ||
== Troubleshooting == | == Troubleshooting == | ||