My objective is to reinstall with a flawless transition from the user perspective. So everything from user options, to active shares and links should be migrated.
But it still needs to be a re-install from 0, because the server has bugs that make it un-updatable and disables access to apps.
Is that possible ? If there’s something in the docs about this I’d gladly follow it, but I couldn’t find something that matched my situation.
move current installation to nextcloud_old
create a fresh install NC v22 to /var/www/nextcloud
restore DATABASE ( not necessary )
restore USERDATA ( only when reside in the same directory as installation Not necessary in your case)
restore config.php
again next command is not necessary as you only refresh the installation and not touch the USERDATA or DATABASE
it depends where you messed you original install if the problem will migrate as well. give it a try… but there is no way to migrate “everything” until you migrate DB and storage…
Unaffortunately nothing worked, here’s what I did:
Disabled all disable-able apps, no change
Permissions were already good but I tried with the other syntax @Vincent_Stans gave me, no change
Decompressed a fresh NC 22, copied config.php from mine, re-applied permissions, aaaand… the error actually “migrated”: no change.
So, most probably, even migrating to a new server would migrate the error too; it must be in the database.
I guess I’ll reinstall everything manually and recreate users with ‘occ’, and I’ll have to notify users they’ll lose their shares. Other than that I think everything should be ok with that method.