To build a master-salve gitlab,which file should i sync between these two machine?

Background:

Dear gitlab stuff:
I have completed a daily offline standby through gitlab-rake_gitlab_backup_create and gitlab-rake_gitlab_backup_restore
But now my boss asks me to build a master-slave gitlab system, which means master gitlab sync data to slave gitlab timely.
My idea is sync postgresql data and some necessary file data.
Now,two postgresql one is master, the other is slave, their data keep pace with each other,but i don't confirm which files i should sync between them.
Besh wishes!

What questions are you trying to answer?
To build a master-salve gitlab,which file should i sync between these two machine?

Are you looking to verify an existing hypothesis or uncover new issues you should be exploring?

What is the backstory of this project and how does it impact the approach?

**What do you already know about the areas you are exploring?**
Now,two postgresql one is master, the other is slave, their data keep pace with each other,but i don't confirm which files i should sync between them.
**What does success look like at the end of the project?**
We can build a real-time master-slave gitlab system

Links / references:

Edited by yungkit