As per my understanding , we can do import or export realms data of keycloak by specifying some java opts on keycloak startup.
Regarding data export , the exported realms json data will also the have the credentials? If yes , then it won't cause security issues as anyone can check the credentials by opening the exported json file.
Yes, if you use the option
-Dkeycloak.migration.action=exportduring the keycloak started up. However, from the Keycloak Documentation:The same applies to the Json File as long as the passwords are encrypted it is fine.