mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
README: added "Restoring backups" section
This commit is contained in:
parent
cbe0da6e36
commit
735c73d833
18
README.md
18
README.md
@ -203,6 +203,24 @@ To take a backup all you need to do is pass the "app:backup" command to the cont
|
||||
sameersbn/gitlab app:backup
|
||||
```
|
||||
|
||||
## Restoring Backups
|
||||
|
||||
Gitlab defines a rake task to easily restore a backup of your gitlab installation. Before performing the restore operation please make sure that the gitlab image is not running.
|
||||
|
||||
```bash
|
||||
docker stop <container-id>
|
||||
```
|
||||
|
||||
To restore a backup, run the image in interactive (-i -t) mode and pass the "app:restore" command to the container image.
|
||||
|
||||
```bash
|
||||
docker run -i -t -h git.local.host \
|
||||
-v /opt/gitlab/data:/home/git/data \
|
||||
sameersbn/gitlab app:restore
|
||||
```
|
||||
|
||||
The restore operation will list all available backups in reverse chronological order. Select the backup you want to restore and gitlab will do its job.
|
||||
|
||||
## Upgrading
|
||||
|
||||
If you upgrading from previous version, please make sure you run the container with **app:db:migrate** command.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user