Neo4j-admin database dump & load error

I have created a neo4j database using neo4j community edition 5.13.0 on a mac. I populated the neo4j database with data, did the dev work, everything worked fine. Then I tried migrating the database to a ubuntu aserver. On the ubuntu server I installed the Debian package of neo4j, all looked fine. I created a db dump on the mac with the command:

./neo4j-admin database dump --to-path=/path/to/export/folder --overwrite-destination=true neo4j

Then on the ubuntu server I imported the database as follows:

sudo /usr/bin/neo4j-admin database load --from-path=/var/www/html/backup --overwrite-destination=true neo4j

The import process seemed to work fine, but then when I started to start the neo4j process and loading the db, I got an error that files were missing:
neostore.propertystore.db.index
neostore.propertystore.db.index.keys
neostore.relationshipgroupstore.db
neostore.nodestore.db.labels
neostore.relationshiptypestore.db

I did the dump and load steps again and even more files were missing from the /var/lib/neo4j/data/database/neo4j folder.

I copied the missing files from the neo4j database on the mac and then the transaction files were missing. I tried starting the neo4j service with the db.recovery.fail_on_missing_files=false flag in neo4j.conf.

After that I got an error on running a Cypher query: "Could not go to page XX". So I deleted the indexes on the neo4j database, recreated them and now the queries run ok.

How can I do the database export/import smoothly and without errors?

Thank you.