Advice for a migration scenario

Hello. I would like to solicit some advice for migrating a production server.

The environment is as follows:

  • Ubuntu 14.04
  • ownCloud 9.1

The migration goal is:

  • Ubuntu 16.04
  • ownCloud 10

I need to preserve users and data. I don't use any apps - so there's no concern there.

I've read the migration guides in the documentation and I have questions, as those documents don't seem tailored to also include a version change.

  1. Do I perform the usual database dump/import? Will an installation of ownCloud 10 know what to do with a database that's been exported from ownCloud 9.1?
  2. Alternatively, would I be better suited to rsync over my installation of ownCloud 9.1, get that up and running, and then perform an upgrade to ownCloud 10?

Thanks in advance for your help.

Personally i think option 2. would be more recommended as this wouldn't include two steps (migrate and upgrade) in one.