Nextcloud webroot and data directory - best practices on Ubuntu 18.04 LTS

You can simply stop the server, move data directory, change path in config and start server again.