Skip to content

Instantly share code, notes, and snippets.

@unixfox
Created January 17, 2017 19:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save unixfox/9cec3e1a6e785187e2808b1497ba2984 to your computer and use it in GitHub Desktop.
Save unixfox/9cec3e1a6e785187e2808b1497ba2984 to your computer and use it in GitHub Desktop.
Migrate Gitlab omnibus to Gitlab source (archlinux)
cd /var/lib/gitlab/backups
wget http://url.com/1484678383_2017_01_17_gitlab_backup.tar
chown gitlab:gitlab 1484678383_2017_01_17_gitlab_backup.tar
systemctl stop gitlab.target
systemctl stop gitlab-sidekiq
systemctl stop gitlab-unicorn
systemctl stop gitlab-workhorse.service
sudo -u gitlab -H bash
cd /usr/share/webapps/gitlab
bundle-2.3 exec rake RAILS_ENV=production gitlab:backup:restore BACKUP=1484678383_2017_01_17_gitlab_backup.tar
exit
systemctl start gitlab.target
systemctl start gitlab-sidekiq
systemctl start gitlab-unicorn
systemctl start gitlab-workhorse.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment