Gitlab: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
<pre>
<pre>
sudo gitlab-rake 'gitlab:password:reset[root]'
sudo gitlab-rake 'gitlab:password:reset[root]'
</pre>
===Backup - Restore ===
====Backup====
<pre>
sudo gitlab-backup create
cp /etc/gitlab/gitlab-secrets.json /var/opt/gitlab/backups/
cp /etc/gitlab/gitlab.rb /var/opt/gitlab/backups/
</pre>
====Restore====
<pre>
sudo cp 11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar /var/opt/gitlab/backups/
sudo chown git:git /var/opt/gitlab/backups/11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar
sudo gitlab-ctl stop puma
sudo gitlab-ctl stop sidekiq
# Verify
sudo gitlab-ctl status
sudo gitlab-backup restore BACKUP=11493107454_2018_04_25_10.6.4-ce
</pre>
</pre>

Revision as of 16:13, 23 July 2022

GitLab Quick Ref

Web site Gitlab

Packages Package List


Reset Password

sudo gitlab-rake 'gitlab:password:reset[root]'

Backup - Restore

Backup

sudo gitlab-backup create
cp /etc/gitlab/gitlab-secrets.json /var/opt/gitlab/backups/
cp /etc/gitlab/gitlab.rb /var/opt/gitlab/backups/

Restore

sudo cp 11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar /var/opt/gitlab/backups/
sudo chown git:git /var/opt/gitlab/backups/11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar

sudo gitlab-ctl stop puma
sudo gitlab-ctl stop sidekiq
# Verify
sudo gitlab-ctl status

sudo gitlab-backup restore BACKUP=11493107454_2018_04_25_10.6.4-ce