HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gitlab-backup — Manage backups for a GitLab Omnibus installation. See also: `gitlab-ctl`, `gitlab-runner`. More info

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandomnibusclimanagegitlabbackupsforgitlab-backup

Problem

How to use the gitlab-backup command: Manage backups for a GitLab Omnibus installation. See also: gitlab-ctl, gitlab-runner. More information: <https://docs.gitlab.com/administration/backup_restore/backup_gitlab/>.

Solution

gitlab-backup — Manage backups for a GitLab Omnibus installation. See also: gitlab-ctl, gitlab-runner. More information: <https://docs.gitlab.com/administration/backup_restore/backup_gitlab/>.

Create a full backup (default strategy):
sudo gitlab-backup create


Create a full backup using the copy strategy:
sudo gitlab-backup create STRATEGY={{copy}}


Restore a backup by specifying its ID:
sudo gitlab-backup restore BACKUP={{backup_id}}


Restore a backup while skipping specific components:
sudo gitlab-backup restore BACKUP={{backup_id}} SKIP={{db,uploads,...}}

Code Snippets

Create a full backup (default strategy)

sudo gitlab-backup create

Create a full backup using the copy strategy

sudo gitlab-backup create STRATEGY={{copy}}

Restore a backup by specifying its ID

sudo gitlab-backup restore BACKUP={{backup_id}}

Restore a backup while skipping specific components

sudo gitlab-backup restore BACKUP={{backup_id}} SKIP={{db,uploads,...}}

Context

tldr-pages: common/gitlab-backup

Revisions (0)

No revisions yet.