2022年3月21日

Gitlab 相关命令

作者 天马流星

# 重新应用gitlab的配置

gitlab-ctl reconfigure

 

# 重启gitlab服务

gitlab-ctl restart

 

# 查看gitlab运行状态

gitlab-ctl status

 

#停止gitlab服务

gitlab-ctl stop

 

# 查看gitlab运行日志

gitlab-ctl tail

 

# 停止相关数据连接服务

gitlab-ctl stop unicorn

gitlab-ctl stop sideki

 

创建备份:gitlab-rake gitlab:backup:create

 
 

现在我们要从1522918586_2018_04_05_10.6.2这个备份编号中,恢复数据,命令如下:

gitlab-rake gitlab:backup:restore BACKUP=1522918586_2018_04_05_10.6.2