Yes, that should work using the nextcloud-app-data volume but I don’t know if it’s possible during the migration process.