@girish said in Migrate Nextcloud - Keep Nextcloud Users and Settings:
you will have convert it somehow.
I did some relevant steps futher to migration. Nextcloud is running with my data, database and apps on cloudron. So far pretty nice.
One more issue in detail:
All Files get a new FileID. Thats a big problem, cus file-links don't work anymore, both internal and external.
Anybody got a hint? Gonna ask in the nextcloud community.
For those how want to migrate, some further information.
On my System (Ubuntu 20, php7.4, mariadb10.5, Nextcloud 22) I installed PostgreSQL. Then convert database by occ db:convert...
sudo -u www-data php /var/www/nextcloud/occ db:convert-type --clear-schema --all-apps pgsql nextclouduser 127.0.0.1 nextcloud
Than make your Database setting equivalent to cloudron setting (u find them in config.php)
sudo -u postgres psql
ALTER DATABASE nextcloud RENAME TO db8fe...;
ALTER ROLE nextclouduser RENAME TO user8fe...;
ALTER ROLE user8fe... WITH PASSWORD 'f99...';
postgres said something about crashing md5
so i switched to "trust" in pg_hba.conf
create your dump
pg_dump -Fp -h 127.0.0.1 -U user8fe... db8fe... -f /home/backup/nextcloudpg.sql
Sync your data-folder and your apps-folder.
Then follow https://docs.cloudron.io/guides/import-postgresql/