On 08/25/2015 02:32 PM, Roni Baby wrote:
> Our current running GitLab version is 6.8.1. As part of upgrade it into
> latest I followed
>  
> https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update/README.md#upgrading-from-non-omnibus-mysql-to-an-omnibus-installation-version-68
>  
> 
> In this above link recomment to do it in the following step
> 
> # Create a backup of the non-Omnibus MySQL installation
> <https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md#create-a-backup-of-the-gitlab-system>
> # Export and convert the existing MySQL database in the GitLab backup file
> <https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/mysql_to_postgresql.md#converting-a-gitlab-backup-file-from-mysql-to-postgres>
> # Restore this in the Omnibus installation
> <https://gitlab.com/gitlab-org/omnibus-gitlab/blob/98b1bfb0d70082953d63abbc329cd6f2c628d3bc/README.md#restoring-an-application-backup>
> # Rebuild database indexes
> <https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/mysql_to_postgresql.md#for-omnibus-gitlab-installations>
> 
> I can successfully compete the above two steps, when i try to restore
> the backup into this latest version, I am getting the following version
> Mismatch error
> 
> root@next-cm:/var/opt/gitlab/backups
> -> sudo gitlab-rake gitlab:backup:restore BACKUP=1440485365
> Unpacking backup ... done
> GitLab version mismatch:
>   Your current GitLab version (7.14.0) differs from the GitLab version
> in the backup!
>   Please switch to the following version and try again:
>   version: 6.8.1
> 
> Hint: git checkout v6.8.1
> 
> It will be good to get the solution for it
> 

Restore works only on the same version that you took backup. So you have
to first download 6.8.1 from the archives[0], install it, restore and
then upgrade again to latest version.

fyi this is on my roadmap
https://gitlab.com/gitlab-org/gitlab-ce/issues/2152

[0] https://about.gitlab.com/downloads/archives/

-- 
Blog: http://axilleas.me

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/55DCBF68.2060109%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to