i want to ask a question ,

i have a site of mine , i want a something like if my server goes down my site start loading off another server and then when the main site is back it automatically start loading from the first one

it keep synchronizing data on the backend

can you tell me what is this called so i can do a search on google or tell me some solutions for it?