ubuntu gitlab 升级/备份/恢复

1. 停止gitlab服务

gitlab-ctl stop unicorn

gitlab-ctl stop sidekiq

gitlab-ctl stop nginx

gitlab-rake gitlab:backup:create       # 备份

2. 安装gitlab

dpkg -i gitlab-ce_8.16.4-ce.0_amd64.deb

3. 配置和重启gitlab

gitlab-ctl restart

4. gitlab恢复数据

# 停止相关数据连接服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq

# 从1393513186编号备份中恢复
gitlab-rake gitlab:backup:restore BACKUP=1486219173_2017_02_04

# 启动Gitlab
sudo gitlab-ctl start

你可能感兴趣的:(Linux,shell,gitlab,备份)