The GitLab backup script assumes it can rename public/uploads
The GitLab backup script assumes it can rename /opt/gitlab/embedded/service/gitlab-rails/public/uploads
. This assumption does not hold because public/uploads
is a symlink to /var/opt/gitlab/uploads
.
I propose to fix this as follows for the time being:
- patch the backup script to follow symlinks and find the real path;
- move uploads from
/var/opt/gitlab/uploads
(where the backup script cannot rename it) to/var/opt/gitlab/gitlab-rails/uploads
(where it can be renamed).
In the longer term, we should make the uploads path configurable upstream in gitlab-rails. (gitlab core team https://dev.gitlab.org/gitlab/gitlabhq/issues/988)
/cc @sytses