meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git:gitlab [2020/03/02 07:53] – [Issues] niziak | git:gitlab [2021/12/10 10:45] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| Download location: [[https:// | Download location: [[https:// | ||
| Line 5: | Line 5: | ||
| Configure Gitlab' | Configure Gitlab' | ||
| - | <code bash> | ||
| - | gitlab-ctl stop | ||
| - | gitlab-ctl start | ||
| - | </ | ||
| Get installed version info | Get installed version info | ||
| Line 22: | Line 18: | ||
| <code bash> | <code bash> | ||
| <code bash> | <code bash> | ||
| + | <code bash> | ||
| + | gitlab-rails console | ||
| + | </ | ||
| + | |||
| + | Restart services without downtime | ||
| + | <code bash> | ||
| + | sudo gitlab-ctl hup unicorn | ||
| + | sudo gitlab-ctl hup puma | ||
| + | sudo gitlab-ctl restart sidekiq | ||
| + | sudo gitlab-ctl hup nginx | ||
| + | </ | ||
| + | |||
| + | ===== Start / stop / enable / disable ===== | ||
| + | |||
| + | <code bash> | ||
| + | gitlab-ctl stop | ||
| + | gitlab-ctl start | ||
| + | |||
| + | systemctl disable gitlab-runsvdir.service | ||
| + | systemctl enable gitlab-runsvdir.service | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| ===== Configuration ===== | ===== Configuration ===== | ||
| Line 75: | Line 95: | ||
| </ | </ | ||
| - | ===== Making backup ===== | ||
| - | * block gitlab access (but leave maintenance web page) | ||
| - | * gitlab-ctl deploy-page up | ||
| - | * sudo gitlab-ctl stop unicorn | ||
| - | * sudo gitlab-ctl stop sidekiq | ||
| - | * Store configuration file manually (/ | ||
| - | * Trigger backup creation | ||
| - | * '' | ||
| - | |||
| - | * Start gitlab | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | Make backup without repository | ||
| - | <code bash> | ||
| - | For possible rake tasks to skip see into file ''/ | ||
| - | For now it cane be: '' | ||
| - | |||
| - | |||
| - | ==== Automating backups ==== | ||
| - | crontab -e | ||
| - | <code bash>0 2 * * * / | ||
| - | |||
| - | ==== What is in backup ==== | ||
| - | Backup file e.g.: '' | ||
| - | < | ||
| - | |-- artifacts.tar.gz | ||
| - | |-- backup_information.yml | ||
| - | |-- builds.tar.gz | ||
| - | |-- db | ||
| - | | `-- database.sql.gz | ||
| - | |-- lfs.tar.gz | ||
| - | |-- repositories | ||
| - | | |-- group1 | ||
| - | | | ||
| - | | | ||
| - | | |-- group2 | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | | ||
| - | | `-- user1 | ||
| - | | |-- buildroot.bundle | ||
| - | | |-- linux-stable.bundle | ||
| - | | |-- linux.bundle | ||
| - | | |-- uboot.bundle | ||
| - | `-- uploads.tar.gz | ||
| - | </ | ||
| - | Where .bundle filesa re simple tar archives of bare git repos. | ||
| - | |||
| - | ===== Restoring backup ===== | ||
| - | * install exactly the same version from backup comes | ||
| - | * to wrap '' | ||
| - | * install default gitlab package and make sure it is running | ||
| - | * use /etc/gitlab from backup | ||
| - | * run '' | ||
| - | * stop gitlab | ||
| - | * '' | ||
| - | * '' | ||
| - | * Restore backup | ||
| - | * '' | ||
| - | * OR '' | ||
| - | * Start GitLab | ||
| - | * '' | ||
| - | * Check GitLab | ||
| - | * '' | ||