I had Gitlab on a RaspberryPi for a few years. Now I want to move the repositories to a docker based Gitlab. Best with all settings.
I have read the instructions and tried the following regarding the data:
I copied the content of:
- /etc/gitlab
- /var/opt/gitlab/git-data
and the gitlab container crashed...
I copied the content of:
- /etc/gitlab
- /var/opt/gitlab
and the gitlab container crashed...
I copied the content of:
- /etc/gitlab
and the gitlab container run...
Although Gitlab's settings are to be located in /etc/gitlab, no user or group data has been transferred. The "very first" screen appears, where you should set up the root password etc. Furthermore I noticed that the new Gitlab stores the repositories under /var/opt/gitlab/git-data/repositories/@hashed/ and not in the format /var/opt/gitlab/git-data/repositories/group-or-user-name/reponame.(wiki.)git like before.
- /etc/gitlab
So my question is:
- What do I have to copy to port user and group settings?
- How to port the repositories?
- What do I have to copy/back up to be able to restore the GITLAB in the future?
EDIT (A) - Experiment with containers only
docker run \
--detach \
--rm \
--name gitlab \
--network host \
--volume ${PWD}/etc/gitlab:/etc/gitlab \
--volume ${PWD}/var/opt/gitlab:/var/opt/gitlab \
gitlab/gitlab-ce:latest
If I create a container with this command, do some stuff with GITLAB, than deleting the container and start a new one: This works. In this case the versions of GITLAB are the same fpr both containers.