How to migrate Nextcloud to NethServer 8?

NethServer Version: NethServer8
Module: Nextcloud app

Hi everyone,

I am trying for a last few days to migrate my Nextcloud that is currently running on CentOS 7 to NethServer 8 into Nextcloud app. I have succesfully exported files and database from old server, but can’t find a way to import database into this one.

I have NethServer installed on Rocky Linux.

Is there a way to import it into this app?

Regards, Luka

Hi and welcome to NethServer Community,

it should work using the following command:

runagent -m nextcloud1 podman exec -i nextcloud-db mysql -u nextcloud -pnextcloud nextcloud < olddatabase.sql

See also Run mysql inside roudcube container - #3 by mrmarkuz and Howto manage or customize NS8 podman containers for more info.