Get the App
SLTechnology News&Howtos  ›  Servers  › 

Gitlab migration version inconsistency problem

Shulou Source: shulou.com Published: 2022-06-02 23:29:20 09月22日 Update

Original server: bitnami version gitlab version 8.14.3

Target server: source installation gitlab version: 9.1.1

Backup method:

The original machine does not have a gitlab-rake command

Switch to git user, execute bundle command, and make backup

$/ opt/bitnami/apps/gitlab/htdocs$bundle exec bin/rake gitlab:backup:create RAILS_ENV=production

Modify the backup result storage directory:

/ opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml

$vim / opt/bitnami/apps/gitlab/htdocs/config/gitlab.ymlbackup: path: "/ opt/backup/gitlab" # modify the path

Target server:

$gitlab-rake gitlab:backup:restore BACKUP=1494230203

Reporting an error requires a lower version to reply to the message

Solution:

Downgrade the target server, synchronize the data, and then upgrade the version

Shengyuan server gitlab version

Tags: Version server service backup target command information data scheme method machine user directory result solution error switch synchronization consistency problem Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB Shulou Tech Info NVidia Linux