2016-12-17 6 views
0

gitlab-ce 8.5ソースベースをgitlab-ce 8.15 omnibusに移動しようとしています。私たちはMySQL in source base but now we have to use the psqlとgitlab-ce omnibus`を使っていました。バックアップを取ろうとしていたときに空のレポが原因で失敗してしまった。gitalbソースベースからgitlab omnibusに移動するには?

質問:フルバックアップでソースベースをオムニバスに移動する別の方法はありますか?

答えて

1

gitlabをソースベースからオムニバスに移動しました。以下のリンクを使用して、MySQLからpsqlへのdbダンプを変換することができます。

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/mysql_to_postgresql.md

私はそれが上の/ var/opt/gitlab/gitのデータ/リポジトリ/復元を手動で& gitlabオムニバスサーバ&にコピーされたリポジトリのzipファイルを作成しました。

これらの手順の後、/var/opt/gitlab/git-data/xyz.sh &のスクリプトを実行して、フックを更新します。

#!/bin/bash 
for i in repositories/* ; do 
    if [ -d "$i" ]; then 
    for o in $i/* ; do 
    if [ -d "$i" ]; then 
     rm "$o/hooks" 
     # change the paths if required 
     ln -s "/opt/gitlab/embedded/service/gitlab-shell/hooks" /var/opt/gitlab/git-data/"$o"/hooks 
     echo "HOOKS CHANGED ($i/$o)" 
    fi 
    done 
    fi 
done 

注:レポ許可はgitのする必要があります:gitの移行中

いくつかの便利なコマンド:

sudo gitlab-ctl start postgres **to start the Postgres service only** 

sudo gitlab-psql **to use the gitlab bundle postgres.** 

あなたはgitlabページ上の5xxエラーコードに直面している場合はコメントをお気軽に。

関連する問題