Migrating seafile community to new server

I need to migrate a seafile community server version 6.0.4 running on ubuntu 16.04 to a new server with ubuntu 22.04
I tried migrating by rsyncing all of the old seafile data to the new system but when i upgraded seafile to 11.x (following the migration guide) all the links for the data repositories were gone.
Is there a simple way to migrate the data from one installation to another one, possibly running a newer seafile version?