> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/devops/gitlab/gitlab-cheatsheet.md).

# GitLab Cheatsheet

## Backup Gitlab

### To backup gitlab use

```bash
sudo gitlab-rake gitlab:backup:create
```

### To backup gitlab with skipping folders

```bash
sudo gitlab-rake gitlab:backup:create SKIP = db,uploads
```

### To backup gitlab via docker

```bash
docker exec -it f351d4411dc5 gitlab-rake gitlab:backup:create
```

###

### Default location for backups is

```bash
/var/opt/gitlab/backups
```
