Is it possible to restore a backup of zimbra to a future version; example 3.1.4 to 5.0.2.

I have tried running a few tests, but seem to have trouble getting the new install of the future version to restore the ldap.