gitlab备份与恢复

gitlab备份

1、修改/etc/gitlab/gitlab.rb文件

2、修改备份地址

搜索/backup_data
找到gitlab_rails['backup_path'] = "/home/gitlab/backup_old_gitlab_20240123"行,修改备份路径

3、停止gitlab

systemctl stop gitlab-runsvdir
sudo gitlab-ctl stop

4、执行备份命令

gitlab-rake gitlab:backup:create

5、完成后备份文件会保存到/home/gitlab/backup_old_gitlab_20240123路径下

gitlab恢复

参考链接
gitLab数据备份和恢复
https://blog.csdn.net/bbj12345678/article/details/128318174
GitLab备份与恢复/迁移方案;
https://blog.csdn.net/qq_44930876/article/details/129581849
gitlab查看版本方式
https://www.cnblogs.com/lucktomato/p/17166598.html
gitlab主备部署方案
https://blog.csdn.net/m0_38100350/article/details/118344503
gitLab安装与卸载
https://blog.csdn.net/bbj12345678/article/details/128286483
yum方式安装Gitlab
https://blog.csdn.net/pengpeng0121/article/details/132357512

posted @ 2024-10-15 16:22  东临碣石,以观沧海  阅读(3)  评论(0编辑  收藏  举报