Horje
Backup Restore and Upgrade Gitlab Code Example
Backup Restore and Upgrade Gitlab
#Assuming Instance1 is the production instance and Instance2 is the newly set-up test instance

#From Instance1 
sudo gitlab-backup create

#copy the crearted backup to Instance2
# The backup can be found at /var/opt/gitlab/backups
scp "specific"_gitlab_backup.tar root@Instance2/opt/gitlab/backups

In the 2nd instance
#change ownership of backup file to git user
sudo chown git.git /var/opt/gitlab/backups/"specific"_gitlab_backup.tar
#stop puma and sidekiq
sudo gitlab-ctl stop puma
sudo gitlab-ctl stop sidekiq
#ncase you have only one backup you dont need to specify
sudo gitlab-backup restore BACKUP="specific"_gitlab_backup.tar

#From Instance1 
#Copy /etc/gitlab directory to Instance2
scp -r /etc/gitlab root@Instance2:/etc/gitlab

#In Instance2 
#Reconfigure, restart and check GitLab:
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
sudo gitlab-rake gitlab:check SANITIZE=true

#In Instance2 
#Upgrading from 13.11.3 to 13.12.15
sudo apt-get install  gitlab-ee=13.12.15-ee.0

#From Instance1 
#Copy /etc/gitlab directory to Instance2
scp -r /etc/gitlab root@Instance2:/etc/gitlab

#In Instance2 
#Reconfigure, restart and check GitLab:
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
sudo gitlab-rake gitlab:check SANITIZE=true

Proceed to login with your 13.11.3 password and username




Shell

Related
add folders to gitignore Code Example add folders to gitignore Code Example
apache license Code Example apache license Code Example
Unable to upgrade Flutter: no origin repository configured. Code Example Unable to upgrade Flutter: no origin repository configured. Code Example
pulls OS name and version linux Code Example pulls OS name and version linux Code Example
elk max virtual memory areas vm.max_map_count [65530] is too low Code Example elk max virtual memory areas vm.max_map_count [65530] is too low Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11