Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: composer add git repository 
Shell :: cp all except one folder 
Shell :: install .net framework 3.5 from windows 
Shell :: ffmpeg boost audio level 
Shell :: regex match + n lines 
Shell :: CMake Error at src/CMakeLists.txt:10 (find_package): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one. 
Shell :: make changes to a previous commit 
Shell :: pushing existing project to github 
Shell :: bash how to convert text to lowercase or uppercase 
Shell :: how to restore a mongodb dump with a new name 
Shell :: ubuntu install docker 
Shell :: arch linux c# install 
Shell :: how to disable browser autofill in Autocomplete mui component 
Shell :: powershell import module 
Shell :: multiple ssh key 
Shell :: how to rename a file in terminal 
Shell :: how to upgrade maven in linux 
Shell :: gui for wsl2 ubuntu 
Shell :: show list of branches git 
Shell :: batch file if statement 
Shell :: how to use compress zip cli linux 
Shell :: delete remote commit 
Shell :: node ffmpeg 
Shell :: create new branch git from master 
Shell :: check gui in linux 
Shell :: bash command in variable 
Shell :: composer php 
Shell :: speedtest cli 
Shell :: openni 2 ros package install 
Shell :: rials db down 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =