mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore(gitlab): skip auto backup upon upgrade
This commit is contained in:
@@ -148,11 +148,18 @@ sudo gitlab-rake 'gitlab:check'
|
||||
sudo gitlab-backup create
|
||||
sudo gitlab-backup create BACKUP='prefix_override' STRATEGY='copy'
|
||||
|
||||
# Skip creating tar files during a backup.
|
||||
# It is *not* possible to skip the tar creation when using object storage for backups.
|
||||
sudo gitlab-backup create … SKIP='tar'
|
||||
|
||||
# Create empty backup archives for testing purposes.
|
||||
# See https://docs.gitlab.com/ee/administration/backup_restore/backup_gitlab.html#excluding-specific-data-from-the-backup
|
||||
sudo gitlab-backup create … \
|
||||
SKIP='db,repositories,uploads,builds,artifacts,pages,lfs,terraform_state,registry,packages,ci_secure_files'
|
||||
|
||||
# Skip backups during upgrades.
|
||||
sudo touch '/etc/gitlab/skip-auto-backup'
|
||||
|
||||
# Create backups of the configuration.
|
||||
sudo gitlab-ctl backup-etc
|
||||
sudo gitlab-ctl backup-etc && ls -t '/etc/gitlab/config_backup/' | head -n '1'
|
||||
|
||||
Reference in New Issue
Block a user