I wonder if I can make a manual backup of repositories physical files not using the gitlab-rake command.
Does anybody knows in which folder physical files are stored on local file system I’m running GitLab 10.5.0.
sudo gitlab-rake gitlab:env:info
and it printed
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
but if I look into /var/opt/gitlab/git-data/repositories this folder does not contain my source files.
Any help appreciated
I understand you query, to futher solve it I would need below information.
[Its ok to run below commands in production server]
If you have not changed log directories settings, then you can find all the logs in “/var/log/gitlab/” and i would request you to attach all logs here.
Else, you can find the location of log directories in /etc/gitlab/gitlab.rb file, there are many log_directory keys for the various types of logs.
For example : /etc/gitlab/gitlab.rb
gitlab_rails['log_directory'] = "/var/log/gitlab/gitlab-rails"
unicorn['log_directory'] = "/var/log/gitlab/unicorn"
registry['log_directory'] = "/var/log/gitlab/registry"
and also I would need below information:
to check the gitlab environment information(system information):
to check selinux status:
Git repositories are “bare” repositories. Bare repositories don’t have working copies of your objects so you won’t “see” any files there but you can see do all the same git commands. You can copy/move that .git bare repository anywhere else or make a clone of it. That’ll get you a copy either as another “bare” or a regular if you clone.