Is it possible to upgrade directly to v30 from v21 using occ upgrade? Or is it absolutely necessary to upgrade in steps 21->22->23->24->25->26->27->28->29->30?
No
Yes
Keep in mind to maintain your php version in between
If all internal information such as shares, decks, contacts, etc. are not important to you and you simply manage data in your Nextcloud, you can proceed as follows.
Your files are stored under /path/to/nextcloud/data/username/files
. Back them up or move them somewhere else.
Install a brand new Nextcloud 30.0.1 and create your user there.
Copy the data back to the new /path/to/nextcloud/data/username/files
.
Execute the following command so that your Nextcloud recognises the files again.
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
Now, of course, you have to redo everything that was in the Nextcloud database. For example, you have to create new shares, whereby the URL is then of course no longer correct.
OK, it looks like I will need to implement a custom data migration from the old database to the new database to make things both easiest and safest. We are only use the core functionality, along with a number of custom app tables, so it should be manageable.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.