Merging 2 gitlab on premise

Hi,
I currently active 2 gitlab on 2 servers on premise
I need to merge the 2 gitlabs in one instance without losing groups, projects, subprojects and issues
How can I do that?