Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-07 00:23:48 +00:00
parent 10dbf8b0c0
commit 22bb163ffa
20 changed files with 143 additions and 49 deletions

26
tldr/gitlab-backup Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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,...}}`