What way is the best way to migrate all projects, issues, users, snippets and everything else from an old gitlab installation to a new one?
Our old machine is a bitnami VM with GitLab 6.3.0 – The commands from the backup guide are not working:
sudo gitlab-rake gitlab:backup:create
> commandgitlab-rake
not foundsudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
returnsCould not locate Gemfile
So is it even possible to transfer the data from v6 to v7 with this? – And how?
The new machine is running on Ubuntu 14.04 with Gitlab 7.5.3 (Omnibus, .deb installation) (fresh installed, works and nothing changed)
Best Answer
Referring to this link: https://community.bitnami.com/t/cannot-run-gitlab-backup-in-6-6-4/22936 you obviously running the command in the wrong directory.
The correct path, where your Gemfile is located is
/opt/bitnami/apps/gitlab/htdocs
.This should create a backup in the
/opt/bitnami/apps/gitlab/htdocs/tmp/backups
by default (if not changed in the Gitlab config file)This file should contain all necessary information for migrating to the new server.