Skip to content

Commit 1e1793d

Browse files
authored
doc: Update README.md
1 parent 2a1834c commit 1e1793d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/gitlab/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ gitlab-rake gitlab:backup:create # 执行gitlab备份命令
6969
docker exec 容器名或容器id gitlab-rake gitlab:backup:create
7070
```
7171

72+
若结果显示 `Errno::EACCES: Permission denied @ dir_s_mkdir - /var/opt/gitlab/backups/db`,则说明当前路径的 `权限不足` 以及 `拥有者` 错误,需要授予当前路径对应的权限并把拥有者改为 `git`。进入容器执行下面命令:
73+
74+
```bash
75+
chmod -R 755 /var/opt/gitlab/backups
76+
chown -R git:git /var/opt/gitlab/backups
77+
```
7278

7379
### 自动备份
7480

0 commit comments

Comments
 (0)