How to migrate Discourse Forum data (Topics, Chat, and Configuration) to another server

We are deploying in Kubernetes and using keycloak as sso usng openid plugin. When we take the backup from 1 instance and restore to another, login is redirecting to instance 1 instead of instance 2.