My production server is currently on NC20.0.14 , php7.3, Ubuntu 18.04. In the near future I plan to upgrade the NC to at least NC22. As php7.3 has reached EOL I need to upgrade that as well. And I think I may just as well upgrade Ubuntu at the same time.
I can upgrade the current version to NC22, and then also upgrade php and Ubuntu. Or I can setup a clean installation with NC22, php8.0 and Ubuntu20 and migrate the current data to that one.
I know the instruction here https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating.html
but I think this is only migrating to another server with same NC, php, Ubuntu. Will it work if I migrate to a server with upgraded php and ubuntu?
Is there any “How to instructions” for upgrading php and ubuntu?