Best way to perform a data migration when the version gap is so big

Hi everyone I would like to migrate from my current version of nextcloud which is the 20.0.1 on a server with Gentoo and php 7.

The issue is that I would like to avoid if possible having to install multiple nextcloud instances for the migration.

The system on which I want to transfer my data is a Gentoo with php 8.2 and I would like to migrate to the latest version of nextcloud so the 31.

Best way one major upgrade at a time. It is time consuming. But to keep all meta data information this is needed.

If metadata is not important. You can recreate accounts and migrate data and then scan for it with the occ command. But you will lose everything in the database.

1 Like

Also check which version support which PHP version…

2 Likes

Hello @mekko_lazydev, welcome to the Nextcloud community! :handshake:

we had lot of discussions about this topic already please go through server_migration topics

1 Like