GitLab. backup/restore

How to admin and use Linux system
Post Reply
User avatar
azo
Site Admin
Posts: 11
Joined: Mon Jun 10, 2019 9:23 am

GitLab. backup/restore

Post by azo »

I was able to make back-up and restore GitLab to "fresh" GitLab installation.
Probably I was just lucky.

Linux: Ubuntu 16.04
GitLab: 10.2.4

Create back-up on fixed copy of the Git server

Code: Select all

sudo gitlab-rake gitlab:backup:create
Back-up package appeared

Code: Select all

/var/opt/gitlab/backups/1566846988_2019_08_26_10.2.4-ee_gitlab_backup.tar
Then I made machine with the same Linux version: ubuntu-16.04.6-server-amd64.

Code: Select all

sudo apt-get update
sudo apt-get install ca-certificates curl openssh-server
Install GitLab. Same version: 10.2.4
(https://packages.gitlab.com/gitlab/gitl ... _amd64.deb)

Code: Select all

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
sudo apt-get install gitlab-ee=10.2.4-ee.0
Back-up should be placed to the same folder

Code: Select all

/var/opt/gitlab/backups/1566846988_2019_08_26_10.2.4-ee_gitlab_backup.tar

Code: Select all

sudo gitlab-rake gitlab:backup:restore BACKUP=1566817660_2019_08_26_10.2.4-ee
Post Reply