summaryrefslogtreecommitdiff
path: root/doc/raketasks
diff options
context:
space:
mode:
authorCraig Fisher <craig.fisher@prolateral.com>2018-09-13 17:21:05 +0000
committerCraig Fisher <craig.fisher@prolateral.com>2018-09-13 17:21:05 +0000
commit1ff3ef1c35ab46901f94e2a6278211dad952f399 (patch)
tree2330b1e5552690d73905b33641027a95d49f8e3c /doc/raketasks
parente91a52619f129440b064b467b17917a7393a66a0 (diff)
downloadgitlab-ce-1ff3ef1c35ab46901f94e2a6278211dad952f399.tar.gz
Added `chown git` to the backup tar to prevent permission denied errors.
Diffstat (limited to 'doc/raketasks')
-rw-r--r--doc/raketasks/backup_restore.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/raketasks/backup_restore.md b/doc/raketasks/backup_restore.md
index 1d29f6d4e43..5b58362562f 100644
--- a/doc/raketasks/backup_restore.md
+++ b/doc/raketasks/backup_restore.md
@@ -591,9 +591,10 @@ This procedure assumes that:
First make sure your backup tar file is in the backup directory described in the
`gitlab.rb` configuration `gitlab_rails['backup_path']`. The default is
-`/var/opt/gitlab/backups`.
+`/var/opt/gitlab/backups`. It needs to be owned by the `git` user.
```shell
+chown git.git 11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar
sudo cp 11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar /var/opt/gitlab/backups/
```