summaryrefslogtreecommitdiff
path: root/doc/raketasks
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-09-27 09:20:06 +0000
committerRémy Coutable <remy@rymai.me>2018-09-27 09:20:06 +0000
commit2c8475e16f1d484d3a4897cb287fa7cfd44442f0 (patch)
tree8661adb9e9e2ccc772bd241ca4af5d2306340458 /doc/raketasks
parent8a95266b48d134b1f4b02f00764af2bfbb0440e8 (diff)
parent24b3a77c84749e2be5a524f0c5828937ad1c77ef (diff)
downloadgitlab-ce-2c8475e16f1d484d3a4897cb287fa7cfd44442f0.tar.gz
Merge branch 'patch-29' into 'master'
Added `chown git` to the backup tar to prevent permission denied errors. See merge request gitlab-org/gitlab-ce!21724
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 98fce7efb0b..2b9cce6539f 100644
--- a/doc/raketasks/backup_restore.md
+++ b/doc/raketasks/backup_restore.md
@@ -591,10 +591,11 @@ 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
sudo cp 11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar /var/opt/gitlab/backups/
+sudo chown git.git /var/opt/gitlab/backups/11493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar
```
Stop the processes that are connected to the database. Leave the rest of GitLab