在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服务。