Add backup of /etc/gitlab to upgrade process
- Adapts original merge request submitted by @szymon.szypulski - Add gitlab-ctl backup-etc which will backup /etc/gitlab to tar archive in predefined location, currently /etc/gitlab/config_backup. - Add configuration backup to preinst main function executed during upgrade. - Update backup documentation. Resolves: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1552 Signed-off-by:Robert Marshall <rmarshall@gitlab.com>
Showing
- changelogs/unreleased/1552-backup-secrets.yml 5 additions, 0 deletionschangelogs/unreleased/1552-backup-secrets.yml
- config/templates/package-scripts/preinst.erb 10 additions, 7 deletionsconfig/templates/package-scripts/preinst.erb
- doc/settings/backups.md 8 additions, 9 deletionsdoc/settings/backups.md
- files/gitlab-ctl-commands/backup.rb 23 additions, 0 deletionsfiles/gitlab-ctl-commands/backup.rb
- files/gitlab-ctl-commands/lib/gitlab_ctl.rb 1 addition, 0 deletionsfiles/gitlab-ctl-commands/lib/gitlab_ctl.rb
- files/gitlab-ctl-commands/lib/gitlab_ctl/backup.rb 57 additions, 0 deletionsfiles/gitlab-ctl-commands/lib/gitlab_ctl/backup.rb
- spec/gitlab-ctl-commands/lib/gitlab_ctl_backup_spec.rb 110 additions, 0 deletionsspec/gitlab-ctl-commands/lib/gitlab_ctl_backup_spec.rb
Loading
Please register or sign in to comment