Skip to content
Snippets Groups Projects
Commit 0dc431d9 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Apply some styling to backup with Docker docs

parent 49f3f156
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@
Backups can scheduled on the host by prepending `docker exec -t <your container name>` to the commands.
Backup application:
```shell
docker exec -t <your container name> gitlab-rake gitlab:backup:create
```
......@@ -97,4 +98,5 @@
```shell
docker exec -t <your container name> gitlab-rake gitlab:backup:create
```
Backup configuration and secrets:
......@@ -100,5 +102,6 @@
Backup configuration and secrets:
```shell
docker exec -t <your container name> /bin/sh -c 'umask 0077; tar cfz /secret/gitlab/backups/$(date "+etc-gitlab-\%s.tgz") -C / etc/gitlab'
```
......@@ -101,9 +104,10 @@
```shell
docker exec -t <your container name> /bin/sh -c 'umask 0077; tar cfz /secret/gitlab/backups/$(date "+etc-gitlab-\%s.tgz") -C / etc/gitlab'
```
*Note* that you need to have volumes mounted at `/secret/gitlab/backups` and `/var/opt/gitlab`
in order to have these backups persisted outside the cotnainer
>**Note:**
You need to have volumes mounted at `/secret/gitlab/backups` and `/var/opt/gitlab`
in order to have these backups persisted outside the container.
### Restoring an application backup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment