I have a running gitlab-ce instance. While writing some scripts to backup /etc/gitlab like an idiot, I accidentally deleted that folder after copying it to a test backup directory. I deleted the test backup directory and went to get some coffee. I must have changed back into the live instance’s directory before leaving or something. When I can back I thought I had forgotten to delete the “test backup” before leaving and did
rm -rf * on /etc/girlab. FACEPALM
I happened to have copied my gitlab.rb file so that is safe. Is there anyway to dump gitlab-secrets.json and the other ssh key files from the running instance? Everything seems to work fine. I’m hoping I can regenerate the files other than gitlab.rb from memory, or the other files in /var/opt/gitlab. Any ideas?