Moving application folder important for server migration?

Currently when migrating, I just move the data folder and SQL dump to the new server on a fresh installation of Nextcloud. When doing this I noticed that 2FA doesn’t work after entering the TOTP code (brings me to an internal server error). I found out it was because the application folder needed to be moved as well for it to work.

My question is, do Nextcloud apps store some or most data in the application folder and during migration, is it important to also migrate this folder?

The reason I’m not migrating this folder is because the old server uses Nextcloud 25, and I wanted a quick way to migrate the data to the latest version without upgrading version by version (25->26->27…). If the application folder is essential when also migrating with Nextcloud apps what is the best practice?

hello @nerdic welcome to the Nextcloud community :handshake:

You can not skip versions updates. Especially moving the data(base) between different versions likely results in issues.

Please review server migration and server_migration multiple_versions and backup topics - it has been discussed often already. In short migrate the server to the same version.

I see, thank you.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.