1. Backup
Similar to the reference, first one (origin English) and second one (Chinese working note),
https://pikedom.com/migrate-gitlab-instance-to-new-host/#Backup_GitLab
a. Config Backup
Which backup all config setting at "/etc/gitlab" and pack them to one .tar file.
b. Application data backup
Very simple and quick to follow from official GitLab menual as
https://docs.gitlab.com/ee/raketasks/backup_restore.html
Lots of settings you can try and set.
c. Host backup (opt)
This is optional for the hostkey or related stuffs. Usually not in daily / frequently backup.
2. Restore
Stop the GitLab related process is the first step.
Extract and restore application data and config files.
First the application data and then the config files if necessary.
Remember to run the "gitlab:check" to check all stored database / repositories.
Ref:
1. https://pikedom.com/migrate-gitlab-instance-to-new-host/#Backup_GitLab
3. https://docs.gitlab.com/ee/raketasks/backup_restore.html
Other info:
http://mycodetub.logdown.com/posts/260395-gitlab-backup-restore-settings-notes
沒有留言:
張貼留言