Migrate on-premise Owncloud to containerized Nextcloud

I want to migrate my on-premise Owncloud 10.5.0 to a containerized Nextcloud 21 installation.

The migration guides, and tools seem to focus on upgrading an existing installation. Is there a way to push or pull the data from an existing installation to a new one?