wheas.blogg.se

Restore backup gitlab tutorial
Restore backup gitlab tutorial













restore backup gitlab tutorial
  1. Restore backup gitlab tutorial install#
  2. Restore backup gitlab tutorial update#
  3. Restore backup gitlab tutorial manual#

Restore backup gitlab tutorial manual#

Manual backup is too cumbersome, so automatic backup is set through crontab. After the modification is completed, restart the configuration file to take effect. 5.2 Modify the backup directoryįind the following command gitlab_rails="/var/opt/gitlab/backups" The beginning part is the date of creation. Then a file similar to 15504156082019021711.5.1gitlabbackup.tar will be created in the /var/opt/gitlab/backups directory. Use the following command to create a GitLab backup sudo gitlab-rake gitlab:backup:create The command to prohibit GitLab from booting up automatically is sudo systemctl disable rviceĥ. Set the GitLab startup command to be sudo systemctl enable rvice Then restart the GitLab server sudo gitlab-ctl restartįinally, can be used to access the gitlab server. Next restart GitLab configuration sudo gitlab-ctl reconfigure If the ports are occupied by other applications, such as apache, you must change the GitLab server port at this time, here change the port to 8081.įirst open the gitlab.rb file cd /etc/gitlabįound the following # nginx=nil sudo gitlab-ctl restartĪfter the restart is successful, you can access the GitLab server through. # Web server settings(note: host is the FQDN,do not include host:192.168.1.25Īfter the modification is completed and saved, restart the GitLab server. Modify localhost to the local IP, for example, modify it to 192.168.1.25. # Web server settings(note: host is the FQDN,do not include host: localhost Open the gitlab.yml file cd /opt/gitlab/embedded/service/gitlab-rails/config GitLab configuration# 4.1 Change server IP address# After the setting is completed, you can use it successfully.Ĥ. When you use it for the first time, GitLab will prompt to set a password.

restore backup gitlab tutorial

If it runs successfully, enter in the browser to access the GitLab interface. Open sshd and postfix services service sshd startįinally, enter the following command to check whether GitLab is running successfully. Start GitLab after installation is complete sudo gitlab-ctl reconfigure

Restore backup gitlab tutorial install#

After writing the text successfully, execute the following command to install GitLab. Then write the following deb xenial mainįinally :wq save and exit. Next open the text of gitlab-ce.list sudo vim /etc/apt//gitlab-ce.list 2.2 Tsinghuayuan#įirst trust GitLab's GPG public key curl 2>/dev/null| sudo apt-key add -&>/dev/null However, the installation according to the official tutorial will be very slow.It is recommended to use the following methods to install using Tsinghua source. If you follow the official installation method, just run the following commands. GitLab installation# 2.1 Official tutorial Sudo apt-get install -y curl openssh-server ca-certificatesĪfter the execution is complete, select Internet in the mail configuration.

Restore backup gitlab tutorial update#

Dependent package installation# sudo apt-get update GitLab official construction tutorial address: 1.















Restore backup gitlab tutorial