Change Default Backup location Path in GitLab on Ubuntu 18
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GitLab is an open source GIT repository manager based on Rails and developed by GitLab Inc. It is a web-based GIT repository manager that allows your team to work on code, perform feature requests, track bugs, and test and implement applications. GitLab provides features such as a wiki, issue tracking, code reviews, activity feeds, and merge management. It is able to host multiple projects.
Offcial Website -https://docs.gitlab.com/
Backup Create documentation-
https://docs.gitlab.com/ee/raketasks/backup_restore.html#creating-a-backup-of-the-gitlab-system
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 18.04.LTS Bionic Hostname - www.yourdomain.com - ip Address - 192.168.1.40
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mkdir /mnt/new-backups
sudo gedit /etc/gitlab/gitlab.rb &>/dev/null
gitlab_rails['backup_path'] = " /mnt/new-backups"
gitlab-ctl reconfigure
gitlab-rake gitlab:backup:create
cd /mnt/new-backups/ ; ls -l
gitlab-rake gitlab:env:info
gitlab-rake gitlab:check SANITIZE=true
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment