Skip to content

Instantly share code, notes, and snippets.

@tnir
Created October 1, 2015 02:42
Show Gist options
  • Save tnir/b818a327e2e3bb1e51f7 to your computer and use it in GitHub Desktop.
Save tnir/b818a327e2e3bb1e51f7 to your computer and use it in GitHub Desktop.
GitLab 7.xからGitLab 8.0にアップデートする方法 (GitLab CIあり編) ref: http://qiita.com/tnir/items/15e4ce4e091e93f5cee3
$ sudo yum update gitlab-ce
$ sudo gitlab-ctl stop ci-unicorn
$ sudo gitlab-ctl stop ci-sidekiq
$ sudo gitlab-ci-rake backup:show_secrets
$ sudo gitlab-ci-rake backup:create
$ sudo mv /var/opt/gitlab/ci-backups/*_gitlab_ci_backup.tar /var/opt/gitlab/backups/
$ sudo gitlab-rake ci:migrate
This will remove all CI related data and restore it from the provided backup.
Do you want to continue (yes/no)? yes
$ sudo gitlab-ctl hup unicorn
$ sudo gitlab-ctl restart sidekiq
Unpacking backup ... done
Restoring database ...
Restoring PostgreSQL database gitlabhq_production ...
SET
SET
DROP INDEX
DROP INDEX
SET
CREATE TABLE
CREATE SEQUENCE
ALTER SEQUENCE
ALTER TABLE
CREATE INDEX
done
Restoring builds ...
done
Migrating tags ...
Inserting tags...
Deleting old taggings...
Inserting taggings...
Resetting counters...
done
Migrating services ...
done
Deleting tmp directories ... done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment