Migrating to another server to a different NextCloud version?

I read this trying to solve my NextCloud update issue:
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating.html

Is it possible to migrate to a greater version of Nextcloud or it is recommended to migrate to exactly the same version?

Thank you.

You should migrate within same version as described. Different application version have different database structure and switching versions without performing required upgrade steps will definitely result in issues at some point in time.

1 Like

Thank you.

Since I have a failed update. Which version should I use? (In my case, I’m between 20 and 21).

DB seems to have migrated to 21…

But I couldn’t run the occ upgrade command.

Thank you.

Normally you should always have the backup of a running Nextcloud version (data and database) and use this backup. If not open a second thread to solving the upgrade problem. Post details of your config, version, logs, …

1 Like

When Using TrueNas / Jails, I was backing up only the data…
I do have a separate thread here for my problem with most information:

Thank you