I have the remnants of a Nextcloud snap server that I’m trying to move to my Kubernetes server.
I’ve copied the data directory over, and I’ve loaded the MySQL database on another machine. Now, I want to move the MySQL database to a postgres db to be better supported by the official Nextcloud helm chart (and because all the other databases I’m managing are postgres, so it’ll make management overall easier).
Without starting the Nextcloud snap again (I don’t want to deal with synchronization issues between the files and the db, and I just finished copying over a few hundred gb), can I just export the MySQL database using a tool like ora2pg, or do I need to start the server temporary to use the occ command?
Also, is there anything else I might need to be concerned about when doing this migration (like how changing the data directory might cause a problems)?