在Ubuntu上遷移GitLab,可參考以下步驟:
sudo gitlab-rake gitlab:backup:create
命令備份數據,備份文件存放在/var/opt/gitlab/backups/
目錄。sudo gitlab-ctl stop unicorn
和sudo gitlab-ctl stop sidekiq
。/etc/gitlab/gitlab.rb
文件,配置外部URL、SSL證書等。/var/opt/gitlab/backups/
目錄,執行sudo gitlab-rake gitlab:backup:restore BACKUP=備份文件名
。sudo gitlab-ctl reconfigure
和sudo gitlab-ctl start
,啟動GitLab服務。