28
40

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitLab 基本的な管理コマンド

Posted at

基本的な管理コマンド

#起動、停止、再起動

gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart

#設定の再構築

gitlab-ctl reconfigure

#ログ確認

gitlab-ctl tail

全プロセスの最新ログを監視する。

ログ自体は下記に出力されるので、ログを特定したら対象ログで原因を分析する。

/var/log/gitlab

#バックアップ

gitlab-rake gitlab:backup:create

下記のディレクトリに作成される。

/var/opt/gitlab/backups

#リストア

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl status

gitlab-rake gitlab:backup:restore BACKUP={対象ファイルの日付/時間部分まで}

gitlab-ctl start
gitlab-rake gitlab:check SANITIZE=true
28
40
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
40

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?