Hello,
Information about my setup:
Docker container: gitlab-ce:14.0.1-ce
Backups are took on the same version, or they should be.
Dockerfile:
docker run --detach \
--hostname hostname.tld \
--publish 443:443 --publish 80:80 --publish INT:22 --publish 5555:5555 --publish 5050:5050 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
--volume /srv/gitlab/logs:/var/log/gitlab \
--volume /srv/gitlab/data:/var/opt/gitlab \
--env GITLAB_OMNIBUS_CONFIG="external_url 'https://url/';" \
gitlab/gitlab-ce:14.0.1-ce.0
backup_information.yml:
:db_version: '20210614143954'
:backup_created_at: 2021-09-15 23:00:18.563746259 +00:00
:gitlab_version: 14.0.1
:tar_version: tar (GNU tar) 1.30
:installation_type: gitlab-docker
:skipped: db,uploads,builds,artifacts,lfs,registry,pages
I am trying to restore my repository data from the backups I have created previously. I opt to only backup the “repositories” data as this is the only applicable thing that we require (or so I thought). Unfortunately, I am running into an issue where the gitlab-backup restore
command is only restoring the “Monitoring” repository (the one from a stock install) and not any of our other data.
This came about after a failed update to the latest version of gitlab. I forgot to do crucial migration updates before going to the latest version.
To the best of my knowledge, the backups do indeed contain the data we are looking for as my log indicates it’s been processed:
Infact you can see the same “paths” in the repositories folder of backups
The command I was backing up with was:
docker exec -i gitlab /bin/bash gitlab-backup create SKIP=db,uploads,builds,artifacts,lfs,registry,pages
I previously verified that I could backup from this type of backup. Perhaps I was mistaken, but does the repository
tag on gitlab-backup
not correlate to data? Is that what the [EMPTY] [SKIPPED] parts mean?
I backup all of the directories correlating to my docker instance (including secrets), but restoring data via a simple copy does not seem to be effective.
(/etc/gitlab | /var/opt/gitlab | /var/log/gitlab)
Would this be useful to recover data from somehow?
Please let me know what I can do to resolve this, or any other information that would be helpful.
Thanks,
Jam.