Skip to content

Restore backup on docker container

I want to migrate from gitlab source to docker container but restore not work.

I think that restore and backup not use right folder to untar file

root@da84e0bfddff:/# gitlab-rake gitlab:backup:restore BACKUP=1442990468 --trace
** Invoke gitlab:backup:restore (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute gitlab:backup:restore Unpacking backup ... tar: repositories: Cannot mkdir: Permission denied tar: repositories: Cannot mkdir: Permission denied

root@da84e0bfddff:/# gitlab-rake gitlab:backup:create --trace ** Invoke gitlab:backup:create (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute gitlab:backup:create ** Invoke gitlab:backup:db:create (first_time) ** Invoke environment ** Execute gitlab:backup:db:create Dumping database ... rake aborted! Errno::EACCES: Permission denied @ dir_s_mkdir - /var/opt/gitlab/backups/db