
{"id":124,"date":"2015-09-25T18:40:31","date_gmt":"2015-09-25T18:40:31","guid":{"rendered":"http:\/\/pages.charlotte.edu\/mark-hamrick\/?p=124"},"modified":"2015-09-25T18:40:31","modified_gmt":"2015-09-25T18:40:31","slug":"gitlab-omnibus","status":"publish","type":"post","link":"http:\/\/pages.charlotte.edu\/mark-hamrick\/blog\/2015\/09\/25\/gitlab-omnibus\/","title":{"rendered":"Gitlab Omnibus"},"content":{"rendered":"<p>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.<\/p>\n<h2 id=\"importing-existing-bare-repos\">Importing Existing Bare repos<\/h2>\n<p>To import existing bare repos into GITLAB under a GROUP called TESTGROUP, transfer the files over to the server under the following directory:<\/p>\n<div class=\"line\" style=\"padding-left: 30px\"><span class=\"text plain\"><span class=\"meta paragraph text\">\/var\/opt\/gitlab\/git-data\/repositories\/TESTGROUP<\/span><\/span><\/div>\n<p>Verify that the git user owns the files so that gitlab rake commands will work. Next run the following command to import the repos.<\/p>\n<div class=\"line\" style=\"padding-left: 30px\"><span class=\"text plain\"><span class=\"meta paragraph text\">gitlab-rake\u00a0gitlab:import:repos<\/span><\/span><\/div>\n<p>If successful, the repos will now appear in the TESTGROUP in Gitlab.<\/p>\n<h2 id=\"backup\">Backup<\/h2>\n<p>Gitlab provides backup functionality by creating a tar file that can be copied elsewhere.<\/p>\n<div class=\"line\" style=\"padding-left: 30px\"><span class=\"text plain\"><span class=\"meta paragraph text\">gitlab-rake\u00a0gitlab:backup:create<\/span><\/span><\/div>\n<p>The backup file is created in a directory listed in the gitlab.yml file. The file on the current install is located below.<\/p>\n<div class=\"line\" style=\"padding-left: 30px\"><span class=\"text plain\"><span class=\"meta paragraph text\">\/opt\/gitlab\/embedded\/service\/gitlab-rails\/config\/gitlab.yml<\/span><\/span><\/div>\n<p>To run the backup use the following gitlab-rake command.<\/p>\n<div class=\"line\" style=\"padding-left: 30px\"><span class=\"text plain\"><span class=\"meta paragraph text\">gitlab-rake\u00a0gitlab:backup:create<\/span><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-updates"],"_links":{"self":[{"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":1,"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":125,"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/posts\/124\/revisions\/125"}],"wp:attachment":[{"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pages.charlotte.edu\/mark-hamrick\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}