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/06/03 11:17] – niziak | git:gitlab [2021/12/10 10:45] (current) – niziak | ||
---|---|---|---|
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 33: | Line 29: | ||
sudo gitlab-ctl hup nginx | 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 86: | 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 | ||
- | * '' | ||