Commit 56b6f594 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'kc-clarify-source-restore' into 'master'

Clarify instructions on performing a restore on a source installation

See merge request gitlab-org/gitlab!49539
parents 5c582afc 12385d88
...@@ -840,11 +840,22 @@ Read more about [configuring NFS mounts](../administration/nfs.md) ...@@ -840,11 +840,22 @@ Read more about [configuring NFS mounts](../administration/nfs.md)
### Restore for installation from source ### Restore for installation from source
First, ensure your backup tar file is in the backup directory described in the
`gitlab.yml` configuration:
```yaml
## Backup settings
backup:
path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
```
The default is `/home/git/gitlab/tmp/backups`, and it needs to be owned by the `git` user. Now, you can begin the backup procedure:
```shell ```shell
# Stop processes that are connected to the database # Stop processes that are connected to the database
sudo service gitlab stop sudo service gitlab stop
bundle exec rake gitlab:backup:restore RAILS_ENV=production sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
``` ```
Example output: Example output:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment