Mark Hamrick
Mark Hamrick
System Admin Mathematics and Statistics

Contact Me

Phone:704-687-0682
Email: M.Hamrick@uncc.edu

Links

  • Dept Site

Gitlab Omnibus

September 25, 2015 by Marshall Hamrick
Categories: Updates

GitLab is now up and running within the department, initially for tech use only. It will be expanded out to the rest of the department later.

Importing Existing Bare repos

To import existing bare repos into GITLAB under a GROUP called TESTGROUP, transfer the files over to the server under the following directory:

/var/opt/gitlab/git-data/repositories/TESTGROUP

Verify that the git user owns the files so that gitlab rake commands will work. Next run the following command to import the repos.

gitlab-rake gitlab:import:repos

If successful, the repos will now appear in the TESTGROUP in Gitlab.

Backup

Gitlab provides backup functionality by creating a tar file that can be copied elsewhere.

gitlab-rake gitlab:backup:create

The backup file is created in a directory listed in the gitlab.yml file. The file on the current install is located below.

/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

To run the backup use the following gitlab-rake command.

gitlab-rake gitlab:backup:create
Skip to toolbar
  • Log In