1.備份
gitlab-rake gitlab:backup:create
備份文件默認(rèn)存放目錄:
/var/opt/gitlab/backups/袱饭,
備份文件以 時間戳_gitlab_backup.tar 命名:1528446365_2018_06_08_10.8.4_gitlab_backup.tar
2.恢復(fù)(把備份文件copy到新gitlab服務(wù)器的/var/opt/gitlab/backups/目錄下)
gitlab-rake gitlab:backup:restore BACKUP=1528446365_2018_06_08_10.8.4
恢復(fù)命令:gitlab-rake gitlab:backup:restore BACKUP=備份文件時間戳对妄,恢復(fù)的時候如果版本不一致宜肉,可能報錯