Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmulvahill/2984fc26338d150a4ab6138f4a2c737d to your computer and use it in GitHub Desktop.
Save mmulvahill/2984fc26338d150a4ab6138f4a2c737d to your computer and use it in GitHub Desktop.
Migrate Gitlab omnibus to Gitlab source (Synology, sameersbn/docker-gitlab)

Moving from xubuntu server to Synology DSM. For now just converting code based on sameersbn/docker-gitlab documentation and expected differences in system commands. Testing next...

cd /volume1/docker/personal/gitlab/backups
rsync -av --verbose <location of old backup> /volume1/docker/personal/gitlab/gitlab/data/backups/
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