Database server migration?

I’ve got NC running and everything is fine. But we’re thinking about setting up multiple instances of nextcloud for our different internal subnets. We only have limited database personnel, so we want to have one database server for everyone. How would I go about changing the database server for a running instance of nextcloud? Is there something in maintenance mode, or would I have to do a full backup, restore it on the other server, and then hack config.php to point to the new server?

There is nothing automatic. Just stop Nextcloud (maintenance mode), move database to new server and adjust the config.php.

When doing such operations, I’d always do a full backup before.

Thanks! If just changing the config.php is going to work,then that’s what I’ll do!