There are tools available.
One example: https://deliciousbrains.com/wp-migrate-db-pro/database-migrations/
There are others if you do a search, and I cannot vouch for the above plugin or any others.
Any tool will require that the databases of the sites exactly match to begin with.